changeset 21818:af741167f81e

(lock_file): gcpro `fn'.
author Richard M. Stallman <rms@gnu.org>
date Wed, 29 Apr 1998 00:28:28 +0000
parents 4dbf2af94988
children c98ba82f4b52
files src/filelock.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/filelock.c	Wed Apr 29 00:20:14 1998 +0000
+++ b/src/filelock.c	Wed Apr 29 00:28:28 1998 +0000
@@ -384,11 +384,17 @@
      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. */