Don't explode when listing files.
committer: Kristian H?gsberg <krh@redhat.com>
1.1 --- a/librazor/razor.c Wed Jun 25 11:24:55 2008 -0400
1.2 +++ b/librazor/razor.c Wed Jun 25 11:44:54 2008 -0400
1.3 @@ -578,6 +578,9 @@
1.4 char buffer[512];
1.5
1.6 package = razor_set_get_package(set, name);
1.7 + /* TODO: we should return the error to the caller */
1.8 + if (!package)
1.9 + return;
1.10
1.11 r = list_first(&package->files, &set->file_pool);
1.12 end = set->files.size / sizeof (struct razor_entry);