fix error_find to actually return the Eina_Error instead of just i

SVN revision: 58679
This commit is contained in:
Mike Blumenkrantz 2011-04-15 00:41:01 +00:00
parent 71226e8f22
commit 8547ebf47f
1 changed files with 2 additions and 2 deletions

View 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;
}