projects
/
profile
/
ivi
/
eina.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8429a3b
)
fix error_find to actually return the Eina_Error instead of just i
author
discomfitor
<discomfitor>
Fri, 15 Apr 2011 00:41:01 +0000
(
00:41
+0000)
committer
discomfitor
<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
patch
|
blob
|
history
diff --git
a/src/lib/eina_error.c
b/src/lib/eina_error.c
index
2fa940a
..
428c414
100644
(file)
--- a/
src/lib/eina_error.c
+++ b/
src/lib/eina_error.c
@@
-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;
}