aboutsummaryrefslogtreecommitdiffstats
path: root/src/filelock.c
diff options
context:
space:
mode:
authorRichard M. Stallman1998-04-29 00:28:28 +0000
committerRichard M. Stallman1998-04-29 00:28:28 +0000
commit3036594f2ac4967e7c89efaec9fcba574eefdf30 (patch)
treec7874b2d4ce96d9f4f5ebff770251c6b7d878102 /src/filelock.c
parent35d6372510105dac02121424a88221c5737dd020 (diff)
downloademacs-3036594f2ac4967e7c89efaec9fcba574eefdf30.tar.gz
emacs-3036594f2ac4967e7c89efaec9fcba574eefdf30.zip
(lock_file): gcpro `fn'.
Diffstat (limited to 'src/filelock.c')
-rw-r--r--src/filelock.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/filelock.c b/src/filelock.c
index 7da65d0dc56..d8e30acc9d5 100644
--- a/src/filelock.c
+++ b/src/filelock.c
@@ -384,11 +384,17 @@ lock_file (fn)
384 visited. */ 384 visited. */
385 { 385 {
386 register Lisp_Object subject_buf; 386 register Lisp_Object subject_buf;
387 struct gcpro1;
388
387 subject_buf = get_truename_buffer (orig_fn); 389 subject_buf = get_truename_buffer (orig_fn);
390 GCPRO1 (fn);
391
388 if (!NILP (subject_buf) 392 if (!NILP (subject_buf)
389 && NILP (Fverify_visited_file_modtime (subject_buf)) 393 && NILP (Fverify_visited_file_modtime (subject_buf))
390 && !NILP (Ffile_exists_p (fn))) 394 && !NILP (Ffile_exists_p (fn)))
391 call1 (intern ("ask-user-about-supersession-threat"), fn); 395 call1 (intern ("ask-user-about-supersession-threat"), fn);
396
397 UNGCPRO;
392 } 398 }
393 399
394 /* Try to lock the lock. */ 400 /* Try to lock the lock. */