xbps_find_deps_pkg: check if "run_depends" obj is NULL.

--HG--
extra : convert_revision : 1040c5d31199bc110a8ad33c85790c3fc71bbbfb
This commit is contained in:
Juan RP 2009-08-11 12:31:40 +02:00
parent d8bc610313
commit 47185e0296

View file

@ -150,7 +150,8 @@ xbps_find_deps_in_pkg(prop_dictionary_t master, prop_dictionary_t pkg)
assert(iter != NULL);
pkg_rdeps = prop_dictionary_get(pkg, "run_depends");
assert(pkg_rdeps != NULL);
if (pkg_rdeps == NULL)
return 0;
/*
* Iterate over the repository pool and find out if we have