update busybox-power against BusyBox 1.21 release
[busybox-power] / debian / patches / supress-bad-number.patch
1 Do not show a message when testing an uninitialized variable
2 (busybox-1.10.2 behaviour)
3
4 --- a/coreutils/test.c
5 +++ b/coreutils/test.c
6 @@ -436,7 +436,7 @@ static number_t getn(const char *s)
7         if (errno != 0)
8                 syntax(s, "out of range");
9  
10 -       if (p == s || *(skip_whitespace(p)) != '\0')
11 +       if (*(skip_whitespace(p)) != '\0')
12                 syntax(s, "bad number");
13  
14         return r;