The test on "if (err)" after parsing a number was meant to be
"if (*err)" but in practise it will always be true since we at least
have a '\n' there, so no need for testing before writing zero.
This fixes issue #1211.
while (*err == '-' || *err == '+' ||
(isalnum((unsigned char)*err) && toupper((unsigned char)*err) != 'U' && toupper((unsigned char)*err) != 'L'))
err++;
- if (err)
- *err = 0;
+ *err = 0;
} else {
value = argv[0];
argv++; argc--;