eet eet_data.c: Added missing NULL check. Patch by Zbigniew Kosinski <z.kosinski...
authorseoz <seoz>
Thu, 4 Oct 2012 23:40:52 +0000 (23:40 +0000)
committerseoz <seoz@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 4 Oct 2012 23:40:52 +0000 (23:40 +0000)
On Thu, Oct 4, 2012 at 9:12 PM, Zbigniew Kosinski <z.kosinski@samsung.com> wrote:
> Hello,
>
> Please consider to add another NULL checks in eet lib:
>
> 2.      eet_connection_send and eet_connection_node_send - NULL check  for
> connection parameter.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eet@77495 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/eet_data.c

index 9c9dc8c..f995353 100644 (file)
@@ -1943,6 +1943,8 @@ eet_data_descriptor_element_add(Eet_Data_Descriptor *edd,
    Eet_Data_Element *ede;
    Eet_Data_Element *tmp;
 
+   EINA_SAFETY_ON_NULL_RETURN(edd);
+
    /* Sanity check to avoid crash later at runtime */
    if (type < EET_T_UNKNOW ||
        type >= EET_T_LAST)