Commit Diff
--- 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;