forked from ariadne/pkgconf
libpkgconf: client: handle NULL client in pkgconf_trace calls
parent
74d58d1b63
commit
06abf28dab
|
@ -324,6 +324,9 @@ pkgconf_trace(const pkgconf_client_t *client, const char *filename, size_t linen
|
||||||
size_t len;
|
size_t len;
|
||||||
va_list va;
|
va_list va;
|
||||||
|
|
||||||
|
if (client == NULL)
|
||||||
|
return false;
|
||||||
|
|
||||||
len = snprintf(errbuf, sizeof errbuf, "%s:" SIZE_FMT_SPECIFIER " [%s]: ", filename, lineno, funcname);
|
len = snprintf(errbuf, sizeof errbuf, "%s:" SIZE_FMT_SPECIFIER " [%s]: ", filename, lineno, funcname);
|
||||||
|
|
||||||
va_start(va, format);
|
va_start(va, format);
|
||||||
|
|
Loading…
Reference in New Issue