libpkgconf: pkgconf_pkg_find(): correctly handle failure from pkgconf_pkg_new_from_file()
parent
cf3c50ca78
commit
0262b8251d
|
@ -616,11 +616,13 @@ pkgconf_pkg_find(pkgconf_client_t *client, const char *name)
|
|||
PKGCONF_TRACE(client, "%s is a file", name);
|
||||
|
||||
pkg = pkgconf_pkg_new_from_file(client, name, f);
|
||||
if (pkg != NULL)
|
||||
{
|
||||
pkgconf_path_add(pkg_get_parent_dir(pkg), &client->dir_list, true);
|
||||
|
||||
return pkg;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* check builtins */
|
||||
if ((pkg = pkgconf_builtin_pkg_get(name)) != NULL)
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
prefix=/usr\nName: GKrellM\nDescription: Extensible GTK system monitoring application\nVersion: 2.3.7\nRequires: gtk+-2.0 >= 2.4.0\nCflags: -I/usr/include\n
|
||||
|
Loading…
Reference in New Issue