git://project.juiblex.co.uk
/
razor2.git/.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
12fb65b
)
Don't explode when listing files.
author
Richard Hughes
<richard@hughsie.com>
Wed, 25 Jun 2008 15:44:54 +0000 (11:44 -0400)
committer
Kristian Høgsberg
<krh@redhat.com>
Wed, 25 Jun 2008 15:44:54 +0000 (11:44 -0400)
librazor/razor.c
patch
|
blob
|
history
diff --git
a/librazor/razor.c
b/librazor/razor.c
index
eef083d
..
bfce109
100644
(file)
--- 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);