err...always strcmp this not sure what I was thinking
authordiscomfitor <discomfitor>
Sat, 19 Mar 2011 00:15:42 +0000 (00:15 +0000)
committerdiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 19 Mar 2011 00:15:42 +0000 (00:15 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@57864 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/eina_error.c

index 34a85a5..0345bd5 100644 (file)
@@ -480,11 +480,8 @@ eina_error_find(const char *msg)
              if (_eina_errors[i].string == msg)
                return i;
           }
-        else
-          {
-             if (!strcmp(_eina_errors[i].string, msg))
-               return i;
-          }
+        if (!strcmp(_eina_errors[i].string, msg))
+          return i;
      }
    return 0;
 }