Skip to content

Commit f6fb1ec

Browse files
committed
Hide debug variable as needed.
1 parent 2d87615 commit f6fb1ec

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

cups/auth.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -540,12 +540,14 @@ cups_local_auth(http_t *http) /* I - HTTP connection to server */
540540

541541
return (1);
542542
#else
543-
char filename[1024]; /* Certificate filename */
543+
# ifdef DEBUG
544+
char hostaddr[256]; // Host address string
545+
# endif // DEBUG
544546
const char *www_auth; /* WWW-Authenticate header */
545547
_cups_globals_t *cg = _cupsGlobals(); /* Global data */
546548

547549

548-
DEBUG_printf(("7cups_local_auth(http=%p) hostaddr=%s, hostname=\"%s\"", (void *)http, httpAddrGetString(http->hostaddr, filename, sizeof(filename)), http->hostname));
550+
DEBUG_printf(("7cups_local_auth(http=%p) hostaddr=%s, hostname=\"%s\"", (void *)http, httpAddrGetString(http->hostaddr, hostaddr, sizeof(hostaddr)), http->hostname));
549551

550552
/*
551553
* See if we are accessing localhost...

0 commit comments

Comments
 (0)