libpkgconf: pkgconf_pkg_find(): correctly handle failure from pkgconf_pkg_new_from_file()
parent
cf3c50ca78
commit
0262b8251d
|
@ -616,9 +616,11 @@ pkgconf_pkg_find(pkgconf_client_t *client, const char *name)
|
||||||
PKGCONF_TRACE(client, "%s is a file", name);
|
PKGCONF_TRACE(client, "%s is a file", name);
|
||||||
|
|
||||||
pkg = pkgconf_pkg_new_from_file(client, name, f);
|
pkg = pkgconf_pkg_new_from_file(client, name, f);
|
||||||
pkgconf_path_add(pkg_get_parent_dir(pkg), &client->dir_list, true);
|
if (pkg != NULL)
|
||||||
|
{
|
||||||
return pkg;
|
pkgconf_path_add(pkg_get_parent_dir(pkg), &client->dir_list, true);
|
||||||
|
return pkg;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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