Don't explode when listing files.
authorRichard Hughes <richard@hughsie.com>
Wed Jun 25 11:44:54 2008 -0400 (2008-06-25)
changeset 2825ce341d27985
parent 281 d8d248598628
child 283 a510dcb8e019
Don't explode when listing files.

committer: Kristian H?gsberg <krh@redhat.com>
librazor/razor.c
     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);