Commit Diff


commit - 14ae1db50e77b79d408122595a67280b1c0f1e13
commit + 573463cc61f9bda627a7e2ea5fee789cff67b01d
blob - b24976ac486c6a231b6f8e5bdee5445d5eea878e
blob + 155c46e802fabfc2001a37c6c61e4e9cd9145b8e
--- lib/fileindex.c
+++ lib/fileindex.c
@@ -766,6 +766,8 @@ walk_dir(struct got_pathlist_entry **next, struct got_
 {
 	const struct got_error *err = NULL;
 	struct dirent *de = dle->data;
+
+	*next = NULL;
 
 	if (de->d_type == DT_DIR) {
 		char *subpath;