# HG changeset patch # User Richard Hughes # Date 1214408694 14400 # Node ID 5ce341d279853e47076b9a17490de161cb1547ad # Parent d8d248598628b90fc54f8a8a942a22148943b362 Don't explode when listing files. committer: Kristian H?gsberg diff -r d8d248598628 -r 5ce341d27985 librazor/razor.c --- a/librazor/razor.c Wed Jun 25 11:24:55 2008 -0400 +++ b/librazor/razor.c Wed Jun 25 11:44:54 2008 -0400 @@ -578,6 +578,9 @@ 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);