tree-diff: remove the use of pathspec's raw[] in follow-rename codepath
[gitweb.git] / merge-recursive.c
index ea9dbd307c60a16f290b44964c386e566b6bc7e3..8395b9b08ac83f934b0e0c6fae4a9d83b0f0d6b2 100644 (file)
@@ -297,7 +297,7 @@ static int get_files_dirs(struct merge_options *o, struct tree *tree)
 {
        int n;
        struct pathspec match_all;
-       init_pathspec(&match_all, NULL);
+       memset(&match_all, 0, sizeof(match_all));
        if (read_tree_recursive(tree, "", 0, 0, &match_all, save_files_dirs, o))
                return 0;
        n = o->current_file_set.nr + o->current_directory_set.nr;