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

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