aboutsummaryrefslogtreecommitdiff
path: root/src/librc
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-04-26 14:57:39 +0000
committerRoy Marples <roy@marples.name>2008-04-26 14:57:39 +0000
commitb5d829789f6f4fabb02b7e995267f6e906b002ef (patch)
tree23c0e4bda08a2b06719ca2ececdb84de89ff3a8e /src/librc
parent1e3442f95d2acd290e417f9b26e908c98c4a2c36 (diff)
Check we have a list before running depends.
Diffstat (limited to 'src/librc')
-rw-r--r--src/librc/librc-depend.c3
1 files changed, 3 insertions, 0 deletions
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();