Commit fe07cdfa authored by Paul Eggert's avatar Paul Eggert
Browse files

* process.c (read_process_output): Simplify nbytes computation if buffered.

parent 82eaa333
......@@ -5,6 +5,7 @@
(create_pty): Remove unnecessary "volatile"s.
(Fnetwork_interface_info): Avoid possibility of int overflow.
(read_process_output): Do adaptive read buffering even if carryover.
(read_process_output): Simplify nbytes computation if buffered.
* bytecode.c (exec_byte_code): Rename local to avoid shadowing.
......@@ -5205,13 +5205,8 @@ read_process_output (Lisp_Object proc, register int channel)
}
}
#endif
if (buffered)
{
if (nbytes < 0)
nbytes = 1;
else
nbytes = nbytes + 1;
}
nbytes += buffered;
nbytes += buffered && nbytes <= 0;
}
p->decoding_carryover = 0;
......
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