changeset 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 f3528e5553c8
children 1eb416c4b163
files src/buffer.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
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.  */