diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-06-03 01:47:04 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-06-03 01:47:04 +0200 |
commit | 3e47cfec90fbe358692b3b960f7fa2303e465c2f (patch) | |
tree | 5cbeb396732bd35f930bfed83cb1ba4469192a2a /coreutils | |
parent | 26b6ccf340243ec3acd594c6928b18e95d3deea9 (diff) | |
download | busybox-3e47cfec90fbe358692b3b960f7fa2303e465c2f.tar.gz |
test: "" is not a valid number. Closes bug 1915
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'coreutils')
-rw-r--r-- | coreutils/test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/test.c b/coreutils/test.c index 5864c7f32..a1d164574 100644 --- 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; |