builtin/apply: make create_file() return -1 on error
[gitweb.git] / builtin / update-index.c
index b8b8522249337703eb66b245ad263e7dc1b41582..6cdfd5f7308df9df10afd90748a83d7abb61ca65 100644 (file)
@@ -759,7 +759,7 @@ static int do_reupdate(int ac, const char **av,
                if (save_nr != active_nr)
                        goto redo;
        }
-       free_pathspec(&pathspec);
+       clear_pathspec(&pathspec);
        return 0;
 }