]> git.eshelyaron.com Git - emacs.git/commitdiff
(lock_file): gcpro `fn'.
authorRichard M. Stallman <rms@gnu.org>
Wed, 29 Apr 1998 00:28:28 +0000 (00:28 +0000)
committerRichard M. Stallman <rms@gnu.org>
Wed, 29 Apr 1998 00:28:28 +0000 (00:28 +0000)
src/filelock.c

index 7da65d0dc56bbe56fe688201e5ce57ed1c90aec9..d8e30acc9d58115037bdba3cb232fd75247a9f9c 100644 (file)
@@ -384,11 +384,17 @@ lock_file (fn)
      visited.  */
   {
     register Lisp_Object subject_buf;
+    struct 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;
   }
 
   /* Try to lock the lock. */