From 22ed928d06f1bad227fd0a08e5fc3e6243ad820f Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Tue, 19 Nov 2013 00:55:05 +0100 Subject: [PATCH] Fixes: debbugs:15923 * process.c (get_process): Check that OBJ is a live buffer. --- src/ChangeLog | 5 +++++ src/process.c | 5 ++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 28899150e96..b550549811b 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2013-11-18 Andreas Schwab + + * process.c (get_process): Check that OBJ is a live buffer. + (Bug#15923) + 2013-07-15 Glenn Morris * image.c (Fimage_flush): Fix doc typo. diff --git a/src/process.c b/src/process.c index 2fb5b16a19f..69ec6bb1b20 100644 --- a/src/process.c +++ b/src/process.c @@ -775,9 +775,8 @@ get_process (register Lisp_Object name) else obj = name; - /* Now obj should be either a buffer object or a process object. - */ - if (BUFFERP (obj)) + /* Now obj should be either a (live) buffer object or a process object. */ + if (BUFFERP (obj) && !NILP (BVAR (XBUFFER (obj), name))) { proc = Fget_buffer_process (obj); if (NILP (proc)) -- 2.39.2