pack-objects: implement bitmap writing
[git/git.git] / pack-write.c
index ca9e63b..6203d37 100644 (file)
@@ -371,5 +371,7 @@ void finish_tmp_packfile(char *name_buffer,
        if (rename(idx_tmp_name, name_buffer))
                die_errno("unable to rename temporary index file");
 
        if (rename(idx_tmp_name, name_buffer))
                die_errno("unable to rename temporary index file");
 
+       *end_of_name_prefix = '\0';
+
        free((void *)idx_tmp_name);
 }
        free((void *)idx_tmp_name);
 }