fix error_find to actually return the Eina_Error instead of just i
authordiscomfitor <discomfitor>
Fri, 15 Apr 2011 00:41:01 +0000 (00:41 +0000)
committerdiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 15 Apr 2011 00:41:01 +0000 (00:41 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@58679 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/eina_error.c

index 2fa940a..428c414 100644 (file)
@@ -270,10 +270,10 @@ eina_error_find(const char *msg)
         if (_eina_errors[i].string_allocated)
           {
              if (_eina_errors[i].string == msg)
-               return i;
+               return i + 1;
           }
         if (!strcmp(_eina_errors[i].string, msg))
-          return i;
+          return i + 1;
      }
    return 0;
 }