summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2008-06-25 11:48:46 -0400
committerKristian Høgsberg <krh@redhat.com>2008-06-25 11:48:46 -0400
commit174586f2d38a39dbf0a4d8a0acf3190c51c41070 (patch)
tree7c732c35af8a5145fb6eb666dc6d2e383a7ec049
parent10cf5c2cd7dda5bf606a9ddca2ded889d35e8b0c (diff)
Also don't explode when a given path doesn't exist.
-rw-r--r--librazor/razor.c2
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);
}