From: Richard Hughes Date: Wed, 25 Jun 2008 15:44:54 +0000 (-0400) Subject: Don't explode when listing files. X-Git-Tag: 0.1~93 X-Git-Url: http://project.juiblex.co.uk/git/?a=commitdiff_plain;h=10cf5c2cd7dda5bf606a9ddca2ded889d35e8b0c;p=razor2.git%2F.git Don't explode when listing files. --- diff --git a/librazor/razor.c b/librazor/razor.c index eef083d..bfce109 100644 --- a/librazor/razor.c +++ b/librazor/razor.c @@ -578,6 +578,9 @@ razor_set_list_package_files(struct razor_set *set, const char *name) char buffer[512]; package = razor_set_get_package(set, name); + /* TODO: we should return the error to the caller */ + if (!package) + return; r = list_first(&package->files, &set->file_pool); end = set->files.size / sizeof (struct razor_entry);