]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - backend/ipp.c
The IPP backend did not add the "last-document" attribute
[thirdparty/cups.git] / backend / ipp.c
index b3049d85f823cf5274feb5da9ec1f69d2e2dc392..1bbd73c3f9e7c89fa88f45981c8ce5fc31697e5e 100644 (file)
@@ -1699,8 +1699,8 @@ main(int  argc,                           /* I - Number of command-line args */
          ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME,
                        "requesting-user-name", NULL, argv[2]);
 
-        if ((i + 1) >= num_files)
-         ippAddBoolean(request, IPP_TAG_OPERATION, "last-document", 1);
+       ippAddBoolean(request, IPP_TAG_OPERATION, "last-document",
+                     (i + 1) >= num_files);
 
        if (document_format)
          ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_MIMETYPE,