Commit 8af8a9ca authored by Dave Love's avatar Dave Love
Browse files

(lock_file): Move gcpro of `fn'.

parent accd1266
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment