From 47185e029611fa379e8be5ce1c31ce34558d0c2f Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 11 Aug 2009 12:31:40 +0200 Subject: [PATCH] xbps_find_deps_pkg: check if "run_depends" obj is NULL. --HG-- extra : convert_revision : 1040c5d31199bc110a8ad33c85790c3fc71bbbfb --- lib/depends.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/depends.c b/lib/depends.c index 023711e5d39..e1db2eeea1a 100644 --- a/lib/depends.c +++ b/lib/depends.c @@ -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