]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix build.
authormike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Thu, 8 Nov 2012 22:41:25 +0000 (22:41 +0000)
committermike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Thu, 8 Nov 2012 22:41:25 +0000 (22:41 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10687 7a7537e8-13f0-0310-91df-b6672ffda945

test/ippserver.c

index b0d8345cd58665f62563eff507a45bed591a2bb5..a210d2eb31cbc61d53cab3d6e99000e1496fa7fe 100644 (file)
@@ -4954,10 +4954,7 @@ valid_doc_attributes(
       attr = ippAddString(client->request, IPP_TAG_JOB, IPP_TAG_MIMETYPE,
                           "document-format", NULL, format);
     else
-    {
-      _cupsStrFree(ippGetString(attr, 0, NULL));
-      ippGetString(attr, 0, NULL) = _cupsStrAlloc(format);
-    }
+      ippSetString(client->request, &attr, 0, format);
   }
 
   if (client->request->request.op.operation_id != IPP_CREATE_JOB &&