diff options
author | Dave Love <fx@gnu.org> | 1999-10-13 17:17:59 +0000 |
---|---|---|
committer | Dave Love <fx@gnu.org> | 1999-10-13 17:17:59 +0000 |
commit | 8af8a9ca7c03bde417e6275c26a1b6898da29e0a (patch) | |
tree | 1dfe6eb9b1b9718f2b1be14c0b7d39422c16c780 /src/filelock.c | |
parent | accd12667f307e6d60ab47d50ce9630c1d8a86e4 (diff) | |
download | emacs-8af8a9ca7c03bde417e6275c26a1b6898da29e0a.tar.gz |
(lock_file): Move gcpro of `fn'.
Diffstat (limited to 'src/filelock.c')
-rw-r--r-- | src/filelock.c | 4 |
1 files 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) |