projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7fd1f1
)
eina: remove logically dead code.
author
Cedric BAIL
<c.bail@partner.samsung.com>
Thu, 5 Jun 2014 01:10:43 +0000
(
03:10
+0200)
committer
Cedric BAIL
<c.bail@partner.samsung.com>
Thu, 5 Jun 2014 01:10:43 +0000
(
03:10
+0200)
The for loop above would exit with at least length = 0, so < 0 is
just impossible.
CID 1039943.
src/lib/eina/eina_convert.c
patch
|
blob
|
history
diff --git
a/src/lib/eina/eina_convert.c
b/src/lib/eina/eina_convert.c
index
0255b00
..
d795d30
100644
(file)
--- a/
src/lib/eina/eina_convert.c
+++ b/
src/lib/eina/eina_convert.c
@@
-271,9
+271,6
@@
eina_convert_atod(const char *src, int length, long long *m, long *e)
exponent += *str - '0';
}
- if (length < 0)
- goto on_length_error;
-
if (sign < 0)
exponent = -exponent;