forked from ariadne/pkgconf
cache: if the cache_table is NULL don't search it
parent
9d82962160
commit
02710ffdef
|
@ -86,6 +86,9 @@ cache_dump(const pkgconf_client_t *client)
|
||||||
pkgconf_pkg_t *
|
pkgconf_pkg_t *
|
||||||
pkgconf_cache_lookup(pkgconf_client_t *client, const char *id)
|
pkgconf_cache_lookup(pkgconf_client_t *client, const char *id)
|
||||||
{
|
{
|
||||||
|
if (client->cache_table == NULL)
|
||||||
|
return NULL;
|
||||||
|
|
||||||
pkgconf_pkg_t **pkg;
|
pkgconf_pkg_t **pkg;
|
||||||
|
|
||||||
pkg = bsearch(id, client->cache_table,
|
pkg = bsearch(id, client->cache_table,
|
||||||
|
|
Loading…
Reference in New Issue