diff --git a/plugins/sudoers/sudoreplay.c b/plugins/sudoers/sudoreplay.c index efcda8a5b..d7b152dd2 100644 --- a/plugins/sudoers/sudoreplay.c +++ b/plugins/sudoers/sudoreplay.c @@ -890,7 +890,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++;