Mercurial > emacs
diff src/filelock.c @ 21818:af741167f81e
(lock_file): gcpro `fn'.
| author | Richard M. Stallman <rms@gnu.org> |
|---|---|
| date | Wed, 29 Apr 1998 00:28:28 +0000 |
| parents | 36667ebd744e |
| children | 75f04f235df1 |
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. */
