summaryrefslogtreecommitdiff
path: root/librazor
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2008-06-25 11:44:54 -0400
committerKristian Høgsberg <krh@redhat.com>2008-06-25 11:44:54 -0400
commit10cf5c2cd7dda5bf606a9ddca2ded889d35e8b0c (patch)
tree5a3cf20976191027ebe40bfaa89c5a4cdc1a39ec /librazor
parent12fb65b94ffd8e66901da7b1799779a15045cb15 (diff)
Don't explode when listing files.
Diffstat (limited to 'librazor')
-rw-r--r--librazor/razor.c3
1 files changed, 3 insertions, 0 deletions
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);