]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - cups/http.c
Merge changes from CUPS 1.4svn-r7670.
[thirdparty/cups.git] / cups / http.c
index dabf218ce15e9ca51721c2fdba176a4c9f3dde91..b70139108ed14803f539f5f06f971f97d1cc45c6 100644 (file)
@@ -2439,8 +2439,12 @@ http_debug_hex(const char *prefix,       /* I - Prefix for line */
   char line[255],                      /* Line buffer */
        *start,                         /* Start of line after prefix */
        *ptr;                           /* Pointer into line */
+  _cups_globals_t *cg = _cupsGlobals();        /* Global data */
 
 
+  if (cg->debug_init && cg->debug_fd < 0)
+    return;
+
   DEBUG_printf(("%s: %d bytes:\n", prefix, bytes));
 
   snprintf(line, sizeof(line), "%s: ", prefix);