From b5d829789f6f4fabb02b7e995267f6e906b002ef Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Sat, 26 Apr 2008 14:57:39 +0000 Subject: Check we have a list before running depends. --- src/librc/librc-depend.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/librc') diff --git a/src/librc/librc-depend.c b/src/librc/librc-depend.c index ac8245fd..c28ccc77 100644 --- a/src/librc/librc-depend.c +++ b/src/librc/librc-depend.c @@ -566,6 +566,9 @@ RC_STRINGLIST *rc_deptree_order(const RC_DEPTREE *deptree, } } + if (!list) + return NULL; + /* Now we have our lists, we need to pull in any dependencies and order them */ types = rc_stringlist_new(); -- cgit v1.2.3