From: Todd C. Miller Date: Tue, 27 Jul 2010 14:12:12 +0000 (-0400) Subject: Don't need to check for *cp being non-zero, isdigit() will do that. X-Git-Tag: SUDO_1_7_4~16 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3f9ffb910cf1e5403f15030f5e5ced6f6d705d04;p=sudo Don't need to check for *cp being non-zero, isdigit() will do that. --HG-- branch : 1.7 --- diff --git a/sudoreplay.c b/sudoreplay.c index 0dd079402..2aa676860 100644 --- a/sudoreplay.c +++ b/sudoreplay.c @@ -912,7 +912,7 @@ parse_timing(buf, decimal, idx, seconds, nbytes) *seconds = (double)l; cp = ep + (*ep == '.' ? 1 : strlen(decimal)); d = 10.0; - while (*cp && isdigit((unsigned char) *cp)) { + while (isdigit((unsigned char) *cp)) { fract += (*cp - '0') / d; d *= 10; cp++;