diff src/buffer.c @ 67335:a4a1c5b73301

(Fkill_buffer): Avoid dangerous side effects in NILP argument.
author Ken Raeburn <raeburn@raeburn.org>
date Tue, 06 Dec 2005 07:37:47 +0000
parents fb6bed3fabd5
children 3bd95f4f2941 37d0562504bf 7beb78bc1f8e
line wrap: on
line diff
--- a/src/buffer.c	Tue Dec 06 06:24:41 2005 +0000
+++ b/src/buffer.c	Tue Dec 06 07:37:47 2005 +0000
@@ -1359,7 +1359,8 @@
     /* First run the query functions; if any query is answered no,
        don't kill the buffer.  */
     arglist[0] = Qkill_buffer_query_functions;
-    if (NILP (Frun_hook_with_args_until_failure (1, arglist)))
+    tem = Frun_hook_with_args_until_failure (1, arglist);
+    if (NILP (tem))
       return unbind_to (count, Qnil);
 
     /* Then run the hooks.  */