Merge branch 'nd/repo-clear-keep-the-index'
[gitweb.git] / refs / files-backend.c
index 49d8f67bf132c2357fddcca4b449e28a54ce8f7c..03fb8649c792b9eb1c1a03a405225feee29a9040 100644 (file)
@@ -2991,7 +2991,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;