dereference pointer before using
authorsachiel <sachiel@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 23 Jan 2012 16:51:02 +0000 (16:51 +0000)
committersachiel <sachiel@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 23 Jan 2012 16:51:02 +0000 (16:51 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67479 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/eina_model.c

index ab26e10..d9452cb 100644 (file)
@@ -2097,7 +2097,7 @@ _eina_model_type_mixin_compare(const Eina_Model *a, const Eina_Model *b, int *cm
           }
      }
 
-   if ((ret) && (cmp == 0))
+   if ((ret) && (*cmp == 0))
      {
         if (priv->if_children)
           {