]> code.delx.au - gnu-emacs/commitdiff
Fixes: debbugs:15923
authorAndreas Schwab <schwab@linux-m68k.org>
Mon, 18 Nov 2013 23:55:05 +0000 (00:55 +0100)
committerAndreas Schwab <schwab@linux-m68k.org>
Mon, 18 Nov 2013 23:55:05 +0000 (00:55 +0100)
* process.c (get_process): Check that OBJ is a live buffer.

src/ChangeLog
src/process.c

index 28899150e96fe47bdd720856b53127a5ec846128..b550549811bd6dd27588ae335a2f5924b7239137 100644 (file)
@@ -1,3 +1,8 @@
+2013-11-18  Andreas Schwab  <schwab@linux-m68k.org>
+
+       * process.c (get_process): Check that OBJ is a live buffer.
+       (Bug#15923)
+
 2013-07-15  Glenn Morris  <rgm@gnu.org>
 
        * image.c (Fimage_flush): Fix doc typo.
index 2fb5b16a19ff68a5bf4ac54f463a5139b8e7e23d..69ec6bb1b20fc752b1ef722d05308d1b2c11db70 100644 (file)
@@ -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))