diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2017-12-12 16:04:02 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2017-12-12 16:04:02 +0300 |
commit | 429162ba11e58758e5e4ac4f03239891fc3e189c (patch) | |
tree | a530c0621a5cb3fe18c8d85392658458d02d6ea1 /libpkgconf/client.c | |
parent | a18413342bc088e10a56ff70dca8f3007a83085d (diff) |
Merge with latest upstream package version (master branch)
Diffstat (limited to 'libpkgconf/client.c')
-rw-r--r-- | libpkgconf/client.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libpkgconf/client.c b/libpkgconf/client.c index f5f4717..811e043 100644 --- a/libpkgconf/client.c +++ b/libpkgconf/client.c @@ -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); |