lock_file: make function-local locks non-static
[gitweb.git] / refs / files-backend.c
index bec8e30e9e3e2995739dfff7cc971f8de623610d..197eea4084ff67cbdcb67adfa8141e982515e9b8 100644 (file)
@@ -2989,7 +2989,7 @@ static int files_reflog_expire(struct ref_store *ref_store,
 {
        struct files_ref_store *refs =
                files_downcast(ref_store, REF_STORE_WRITE, "reflog_expire");
-       static struct lock_file reflog_lock;
+       struct lock_file reflog_lock = LOCK_INIT;
        struct expire_reflog_cb cb;
        struct ref_lock *lock;
        struct strbuf log_file_sb = STRBUF_INIT;