From 8af8a9ca7c03bde417e6275c26a1b6898da29e0a Mon Sep 17 00:00:00 2001 From: Dave Love Date: Wed, 13 Oct 1999 17:17:59 +0000 Subject: [PATCH] (lock_file): Move gcpro of `fn'. --- src/filelock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/filelock.c b/src/filelock.c index bcb71cb8c77..6882443c1e5 100644 --- a/src/filelock.c +++ b/src/filelock.c @@ -566,6 +566,7 @@ lock_file (fn) return; orig_fn = fn; + GCPRO1 (fn); fn = Fexpand_file_name (fn, Qnil); encoded_fn = ENCODE_FILE (fn); @@ -579,15 +580,14 @@ lock_file (fn) struct gcpro gcpro1; subject_buf = get_truename_buffer (orig_fn); - GCPRO1 (fn); if (!NILP (subject_buf) && NILP (Fverify_visited_file_modtime (subject_buf)) && !NILP (Ffile_exists_p (fn))) call1 (intern ("ask-user-about-supersession-threat"), fn); - UNGCPRO; } + UNGCPRO; /* Try to lock the lock. */ if (lock_if_free (&lock_info, lfname) <= 0) -- 2.39.5