changeset 26006:ca384fd94454

(lock_file): Move gcpro of `fn'.
author Dave Love <fx@gnu.org>
date Wed, 13 Oct 1999 17:17:59 +0000
parents 6613b3835666
children 774b2504710b
files src/filelock.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/filelock.c	Wed Oct 13 16:14:15 1999 +0000
+++ b/src/filelock.c	Wed Oct 13 17:17:59 1999 +0000
@@ -566,6 +566,7 @@
     return;
 
   orig_fn = fn;
+  GCPRO1 (fn);
   fn = Fexpand_file_name (fn, Qnil);
   encoded_fn = ENCODE_FILE (fn);
 
@@ -579,15 +580,14 @@
     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)