diff options
author | Kristian Høgsberg <krh@redhat.com> | 2008-06-25 11:48:46 -0400 |
---|---|---|
committer | Kristian Høgsberg <krh@redhat.com> | 2008-06-25 11:48:46 -0400 |
commit | 174586f2d38a39dbf0a4d8a0acf3190c51c41070 (patch) | |
tree | 7c732c35af8a5145fb6eb666dc6d2e383a7ec049 | |
parent | 10cf5c2cd7dda5bf606a9ddca2ded889d35e8b0c (diff) |
Also don't explode when a given path doesn't exist.
-rw-r--r-- | librazor/razor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/librazor/razor.c b/librazor/razor.c index bfce109..3bfee2f 100644 --- a/librazor/razor.c +++ b/librazor/razor.c @@ -510,7 +510,7 @@ razor_set_list_files(struct razor_set *set, const char *pattern) } } e = razor_set_find_entry(set, set->files.data, buffer); - if (e->start != 0) + if (e && e->start != 0) list_dir(set, e, buffer, base); } |