From c49604bd8ef85e84fae6b3ed92cbb76e0fe537fe Mon Sep 17 00:00:00 2001 From: seoz Date: Thu, 4 Oct 2012 23:40:52 +0000 Subject: [PATCH] eet eet_data.c: Added missing NULL check. Patch by Zbigniew Kosinski On Thu, Oct 4, 2012 at 9:12 PM, Zbigniew Kosinski 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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/eet_data.c b/src/lib/eet_data.c index 9c9dc8c..f995353 100644 --- a/src/lib/eet_data.c +++ b/src/lib/eet_data.c @@ -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) -- 2.7.4