Blame SOURCES/ghostscript-cups-icc-profile.patch

ea5d11
From 9e45d4a26eea12be326c5f515b44c7474a33f6c5 Mon Sep 17 00:00:00 2001
ea5d11
From: Tim Waugh <twaugh@redhat.com>
ea5d11
Date: Tue, 12 Jul 2016 17:29:49 +0200
ea5d11
Subject: [PATCH] Do not set device output ICC profile if the string is empty
ea5d11
ea5d11
---
ea5d11
 cups/gstoraster.c | 2 +-
ea5d11
 1 file changed, 1 insertion(+), 1 deletion(-)
ea5d11
ea5d11
diff --git a/cups/gstoraster.c b/cups/gstoraster.c
ea5d11
index 3ddc21f..8fe77a2 100644
ea5d11
--- a/cups/gstoraster.c
ea5d11
+++ b/cups/gstoraster.c
ea5d11
@@ -665,7 +665,7 @@ main (int argc, char **argv, char *envp[])
ea5d11
   cupsArrayAdd(gs_args, strdup(tmpstr));
ea5d11
 
ea5d11
   /* set the device output ICC profile */
ea5d11
-  if(icc_profile != NULL) {
ea5d11
+  if(icc_profile != NULL && icc_profile[0] != '\0') {
ea5d11
     snprintf(tmpstr, sizeof(tmpstr), "-sOutputICCProfile=%s", icc_profile);
ea5d11
     cupsArrayAdd(gs_args, strdup(tmpstr));
ea5d11
   }
ea5d11
-- 
ea5d11
2.5.5
ea5d11