From 59ce7609cb383893ac55921589051993c388c6cc Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 21 Dec 2019 20:18:05 +0200 Subject: [PATCH] ;* src/process.c (read_process_output): Fix last change. --- src/process.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/process.c b/src/process.c index d6a0b30f7cb..35f6e3b548f 100644 --- a/src/process.c +++ b/src/process.c @@ -6095,7 +6095,10 @@ read_process_output (Lisp_Object proc, int channel) if (nbytes <= 0) { if (nbytes < 0 || coding->mode & CODING_MODE_LAST_BLOCK) - return SAFE_FREE_UNBIND_TO (count, nbytes); + { + SAFE_FREE_UNBIND_TO (count, Qnil); + return nbytes; + } coding->mode |= CODING_MODE_LAST_BLOCK; } -- 2.39.2