projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
26b6ccf
)
test: "" is not a valid number. Closes bug 1915
author
Denys Vlasenko
<vda.linux@googlemail.com>
Wed, 2 Jun 2010 23:47:04 +0000
(
01:47
+0200)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Wed, 2 Jun 2010 23:47:04 +0000
(
01:47
+0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
coreutils/test.c
patch
|
blob
|
history
diff --git
a/coreutils/test.c
b/coreutils/test.c
index 5864c7f3253ccf0d9a52ad012e79d354c28e4c8d..a1d164574e23ede49bdde50bc9735ddaff5b7c12 100644
(file)
--- a/
coreutils/test.c
+++ b/
coreutils/test.c
@@
-393,7
+393,7
@@
static number_t getn(const char *s)
if (errno != 0)
syntax(s, "out of range");
- if (
*(skip_whitespace(p))
)
+ if (
p == s || *(skip_whitespace(p)) != '\0'
)
syntax(s, "bad number");
return r;