]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix crash bug.
authormike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Wed, 13 Apr 2011 15:16:28 +0000 (15:16 +0000)
committermike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Wed, 13 Apr 2011 15:16:28 +0000 (15:16 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@9678 7a7537e8-13f0-0310-91df-b6672ffda945

cups/ppd-cache.c

index 395bce381c88ba460816f88d581c2ab9120a9508..f312e6936e889b034197e597f4145b2ee10967fd 100644 (file)
@@ -528,8 +528,6 @@ _ppdCacheCreateWithFile(
     {
       DEBUG_printf(("_ppdCacheCreateWithFile: Unknown %s on line %d.", line,
                    linenum));
-      _cupsSetError(IPP_INTERNAL_ERROR, _("Bad PPD cache file."), 1);
-      goto create_error;
     }
   }
 
@@ -571,7 +569,10 @@ _ppdCacheCreateWithFile(
   _ppdCacheDestroy(pc);
 
   if (attrs)
+  {
     ippDelete(*attrs);
+    *attrs = NULL;
+  }
 
   return (NULL);
 }