forked from enlightenment/efl
fix error_find to actually return the Eina_Error instead of just i
SVN revision: 58679
This commit is contained in:
parent
71226e8f22
commit
8547ebf47f
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue