forked from enlightenment/efl
fix magic failure in eina_value_array_count when array has not been allocated
This commit is contained in:
parent
9e72d028ac
commit
ef3c57aa08
|
@ -1,3 +1,7 @@
|
||||||
|
2013-03-19 Mike Blumenkrantz
|
||||||
|
|
||||||
|
* Fix magic failure in eina_value_array_count when array has not been allocated
|
||||||
|
|
||||||
2013-03-16 Cedric Bail
|
2013-03-16 Cedric Bail
|
||||||
|
|
||||||
* Remove Glew and Direct3d code from Ecore_Evas module.
|
* Remove Glew and Direct3d code from Ecore_Evas module.
|
||||||
|
|
1
NEWS
1
NEWS
|
@ -203,3 +203,4 @@ Fixes:
|
||||||
* fix use of ecore_con_*_flush functions with unconnected objects
|
* fix use of ecore_con_*_flush functions with unconnected objects
|
||||||
* fix setting of write flags on ecore-con servers during connect
|
* fix setting of write flags on ecore-con servers during connect
|
||||||
* fix gles support to only use GL_UNPACK_ROW_LENGTH if extension exists
|
* fix gles support to only use GL_UNPACK_ROW_LENGTH if extension exists
|
||||||
|
* Fix magic failure in eina_value_array_count when array has not been allocated
|
||||||
|
|
|
@ -579,7 +579,7 @@ eina_value_array_count(const Eina_Value *value)
|
||||||
EINA_VALUE_TYPE_ARRAY_CHECK_RETURN_VAL(value, 0);
|
EINA_VALUE_TYPE_ARRAY_CHECK_RETURN_VAL(value, 0);
|
||||||
if (!eina_value_pget(value, &desc))
|
if (!eina_value_pget(value, &desc))
|
||||||
return 0;
|
return 0;
|
||||||
return eina_inarray_count(desc.array);
|
return desc.array ? eina_inarray_count(desc.array) : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline Eina_Bool
|
static inline Eina_Bool
|
||||||
|
|
Loading…
Reference in New Issue