From: Michael Sweet Date: Tue, 12 Sep 2017 16:21:00 +0000 (-0400) Subject: Allow DELAY values of 0. X-Git-Tag: v2.2.5~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2cb1fda9fe6c10da0653e439d86ead125c963720;p=thirdparty%2Fcups.git Allow DELAY values of 0. --- diff --git a/test/ipptool.c b/test/ipptool.c index 737fde124e..40a71b772f 100644 --- a/test/ipptool.c +++ b/test/ipptool.c @@ -1720,7 +1720,7 @@ do_tests(cups_file_t *outfile, /* I - Output file */ expand_variables(vars, token, temp, sizeof(token)); - if ((dval = _cupsStrScand(token, &tokenptr, localeconv())) <= 0.0 || (*tokenptr && *tokenptr != ',')) + if ((dval = _cupsStrScand(token, &tokenptr, localeconv())) < 0.0 || (*tokenptr && *tokenptr != ',')) { print_fatal_error(outfile, "Bad DELAY value \"%s\" on line %d.", token, linenum);