src/gui/painting/qcups.cpp
branchGCC_SURGE
changeset 31 5daf16870df6
parent 30 5dc02b23752f
--- a/src/gui/painting/qcups.cpp	Mon Jun 21 22:38:13 2010 +0100
+++ b/src/gui/painting/qcups.cpp	Thu Jul 22 16:41:55 2010 +0100
@@ -343,7 +343,8 @@
     if (!isAvailable())
         return false;
     const char *ppdFile = _cupsGetPPD(printerName);
-    unlink(ppdFile);
+    if (ppdFile)
+        unlink(ppdFile);
     return (ppdFile != 0);
 }