aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/fstree/fstree_from_file.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/fstree/fstree_from_file.c b/lib/fstree/fstree_from_file.c
index 465f81d..9a34b36 100644
--- a/lib/fstree/fstree_from_file.c
+++ b/lib/fstree/fstree_from_file.c
@@ -12,6 +12,7 @@
#include <fnmatch.h>
#include <stdlib.h>
#include <string.h>
+#include <assert.h>
#include <errno.h>
#include <ctype.h>
@@ -152,7 +153,8 @@ static int glob_node_callback(void *user, fstree_t *fs, tree_node_t *node)
return -1;
}
- canonicalize_name(path);
+ ret = canonicalize_name(path);
+ assert(ret == 0);
ret = fnmatch(ctx->name_pattern, path, FNM_PATHNAME);
free(path);