eef43df40293661bb0da21c2bc2e58cd9a40547e
[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 <tj.groenen@gmail.com> - 2011-08-19
3 ---
4
5 --- a/coreutils/test.c
6 +++ b/coreutils/test.c
7 @@ -436,7 +436,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;