]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Allow DELAY values of 0.
authorMichael Sweet <michael.r.sweet@gmail.com>
Tue, 12 Sep 2017 16:21:00 +0000 (12:21 -0400)
committerMichael Sweet <michael.r.sweet@gmail.com>
Tue, 12 Sep 2017 16:21:00 +0000 (12:21 -0400)
test/ipptool.c

index 737fde124ed479254469d66a257917aa81aeb474..40a71b772f70a6212f04bb7b484cd5d66e77fc81 100644 (file)
@@ -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);