components/cups/patches/str3809.patch
author Tomas Klacko <tomas.klacko@oracle.com>
Mon, 16 Mar 2015 06:37:48 -0700
branchs11u2-sru
changeset 3949 800060d48040
parent 3546 53d07f5ab941
permissions -rw-r--r--
20393612 silence debug info "Reallocating sreaddir buffer from 14 entries to 28 entries"

See: http://www.cups.org/str.php?L3809 for details.

Index: backend/snmp-supplies.c
===================================================================
--- backend/snmp-supplies.c
+++ backend/snmp-supplies.c
@@ -373,9 +373,9 @@
   * See if we should be getting supply levels via SNMP...
   */
 
-  if ((ppd = ppdOpenFile(getenv("PPD"))) != NULL &&
-      (ppdattr = ppdFindAttr(ppd, "cupsSNMPSupplies", NULL)) != NULL &&
-      ppdattr->value && strcasecmp(ppdattr->value, "true"))
+  if ((ppd = ppdOpenFile(getenv("PPD"))) == NULL ||
+      ((ppdattr = ppdFindAttr(ppd, "cupsSNMPSupplies", NULL)) != NULL &&
+       ppdattr->value && strcasecmp(ppdattr->value, "true")))
   {
     ppdClose(ppd);
     return;