libpkgconf: client: handle NULL client in pkgconf_trace calls

pull/164/head
William Pitcock 2017-12-05 17:46:57 -06:00
parent 74d58d1b63
commit 06abf28dab
1 changed files with 3 additions and 0 deletions

View File

@ -324,6 +324,9 @@ pkgconf_trace(const pkgconf_client_t *client, const char *filename, size_t linen
size_t len;
va_list va;
if (client == NULL)
return false;
len = snprintf(errbuf, sizeof errbuf, "%s:" SIZE_FMT_SPECIFIER " [%s]: ", filename, lineno, funcname);
va_start(va, format);