projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
caa2ec1
)
eina: fix possible access to NULL.
author
Cedric BAIL
<c.bail@partner.samsung.com>
Thu, 5 Jun 2014 20:50:20 +0000
(22:50 +0200)
committer
Cedric BAIL
<c.bail@partner.samsung.com>
Thu, 5 Jun 2014 20:50:20 +0000
(22:50 +0200)
CID
1039422
.
src/lib/eina/eina_inline_value.x
patch
|
blob
|
history
diff --git
a/src/lib/eina/eina_inline_value.x
b/src/lib/eina/eina_inline_value.x
index 15220c960cdcd7e86309a0c15713c0605ce96a4e..9aff4011683fc0658980ad47d0026416a88645e3 100644
(file)
--- a/
src/lib/eina/eina_inline_value.x
+++ b/
src/lib/eina/eina_inline_value.x
@@
-840,7
+840,7
@@
eina_value_array_value_get(const Eina_Value *src, unsigned int position, Eina_Va
static inline void *
eina_value_list_node_memory_get(const Eina_Value_Type *type, const Eina_List *node)
{
- if (node == NULL) return NULL;
+ if (node == NULL
|| type == NULL
) return NULL;
if (type->value_size <= sizeof(void*))
return (void *)&(node->data);
return node->data;