From 174586f2d38a39dbf0a4d8a0acf3190c51c41070 Mon Sep 17 00:00:00 2001 From: Kristian Høgsberg Date: Wed, 25 Jun 2008 11:48:46 -0400 Subject: Also don't explode when a given path doesn't exist. --- librazor/razor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- cgit v1.2.3