Commit 21b72067 authored by Andreas Schwab's avatar Andreas Schwab

Fixes: debbugs:9903

* src/minibuf.c (read_minibuf_noninteractive): Allow reading empty
line.
parent aa4de341
2011-10-29 Andreas Schwab <schwab@linux-m68k.org>
* minibuf.c (read_minibuf_noninteractive): Allow reading empty
line. (Bug#9903)
2011-10-29 Glenn Morris <rgm@gnu.org>
* process.c (wait_reading_process_output): Revert 2009-08-30 change.
......
......@@ -251,7 +251,7 @@ read_minibuf_noninteractive (Lisp_Object map, Lisp_Object initial,
while ((c = getchar ()) != '\n')
{
if (c < 0)
if (c == EOF)
{
if (errno != EINTR)
break;
......@@ -269,7 +269,7 @@ read_minibuf_noninteractive (Lisp_Object map, Lisp_Object initial,
}
}
if (len)
if (len || c == '\n')
{
val = make_string (line, len);
xfree (line);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment