[util-linux-2.32.1/lib/strutils.c:122]: (style) Redundant condition: If 'EXPR == '0'', the comparison 'EXPR' is always true.
Reported-by: David Binderman <dcb314@hotmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
if (frac == 0 && *p && dp && strncmp(dp, p, dpsz) == 0) {
char *fstr = p + dpsz;
- for (p = fstr; *p && *p == '0'; p++)
+ for (p = fstr; *p == '0'; p++)
frac_zeros++;
errno = 0, p = NULL;
frac = strtoumax(fstr, &p, 0);