import local busybox-power tree (1.18.5power2)
[busybox-power] / debian / patches / supress-bad-number.patch
1 Do not show a message when testing an uninitialized variable (busybox-1.10.2 behaviour)
2 By Dennis Groenen <dennis_groenen@hotmail.com> - 2011-05-02
3 ---
4
5 --- a/coreutils/test.c
6 +++ b/coreutils/test.c
7 @@ -413,7 +413,7 @@ static number_t getn(const char *s)
8         if (errno != 0)
9                 syntax(s, "out of range");
10  
11 -       if (p == s || *(skip_whitespace(p)) != '\0')
12 +       if (*(skip_whitespace(p)) != '\0')
13                 syntax(s, "bad number");
14  
15         return r;