]> git.ipfire.org Git - thirdparty/git.git/blobdiff - fast-import.c
lock_file: make function-local locks non-static
[thirdparty/git.git] / fast-import.c
index b5db5d20b1b20c642cf97f990eb538ee6fbaa299..2bce22ae0c90c22783a135cd62aa7940c4860b96 100644 (file)
@@ -1858,7 +1858,7 @@ static void dump_marks_helper(FILE *f,
 
 static void dump_marks(void)
 {
-       static struct lock_file mark_lock;
+       struct lock_file mark_lock = LOCK_INIT;
        FILE *f;
 
        if (!export_marks_file || (import_marks_file && !import_marks_file_done))