libpkgconf: client: if tracing is disabled, don't try to trace

feature/tap-sh
William Pitcock 2018-05-09 22:52:07 -05:00
parent e6ce6c8edd
commit 25b2105e93
1 changed files with 1 additions and 1 deletions

View File

@ -354,7 +354,7 @@ pkgconf_trace(const pkgconf_client_t *client, const char *filename, size_t linen
size_t len;
va_list va;
if (client == NULL)
if (client == NULL || client->trace_handler == NULL)
return false;
len = snprintf(errbuf, sizeof errbuf, "%s:" SIZE_FMT_SPECIFIER " [%s]: ", filename, lineno, funcname);