diff options
author | Stephane Chazelas <stephane.chazelas@gmail.com> | 2018-03-18 16:49:42 -0700 |
---|---|---|
committer | Barton E. Schaefer <schaefer@zsh.org> | 2018-03-18 16:49:42 -0700 |
commit | d2350a1e8027e9550996464739885f5ec468bd83 (patch) | |
tree | 005357eaa5df8be0b5e374e13753c853c16d5d7e /Src/exec.c | |
parent | 1219eae82938c918f5183e89af4a54296256372f (diff) | |
download | zsh-d2350a1e8027e9550996464739885f5ec468bd83.tar.gz zsh-d2350a1e8027e9550996464739885f5ec468bd83.tar.xz zsh-d2350a1e8027e9550996464739885f5ec468bd83.zip |
42469: necessary repairs to 42465 found by "make check"
Diffstat (limited to 'Src/exec.c')
-rw-r--r-- | Src/exec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/exec.c b/Src/exec.c index ce8cf8c55..35b0bb191 100644 --- a/Src/exec.c +++ b/Src/exec.c @@ -4599,8 +4599,8 @@ readoutput(int in, int qt, int *readerror) } *ptr++ = c; } - if (readerror && ferror(fin)) - *readerror = errno; + if (readerror) + *readerror = ferror(fin) ? errno : 0; fclose(fin); while (cnt && ptr[-1] == '\n') ptr--, cnt--; |