* eet_node: Fix eet_data_undump segv when Eet_Node == NULL.
authorcedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 4 Jun 2009 09:29:56 +0000 (09:29 +0000)
committercedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 4 Jun 2009 09:29:56 +0000 (09:29 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eet@40894 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/eet_data.c

index b47482e..452c435 100644 (file)
@@ -1671,6 +1671,8 @@ _eet_data_dump_encode(Eet_Dictionary *ed,
        else words_bigendian = 0;
      }
 
+   if (node == NULL) return NULL;
+
    ds = eet_data_stream_new();
    if (!ds) return NULL;