diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2011-04-04 02:06:52 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2011-04-04 02:06:52 -0700 |
commit | fe07cdfa53cf14415f9c7847d9e6af6747e5023c (patch) | |
tree | 50b160817707181886e0ce2ec26f88e31a197074 /src/process.c | |
parent | 82eaa3332cd0568b8e8f3f3dc3438dab61b7cc1d (diff) | |
download | emacs-fe07cdfa53cf14415f9c7847d9e6af6747e5023c.tar.gz |
* process.c (read_process_output): Simplify nbytes computation if buffered.
Diffstat (limited to 'src/process.c')
-rw-r--r-- | src/process.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/process.c b/src/process.c index 33f41c4a8f0..a9a8eb79ede 100644 --- a/src/process.c +++ b/src/process.c @@ -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; |