diff options
| author | Barton E. Schaefer <schaefer@zsh.org> | 2016-01-08 20:36:50 -0800 |
|---|---|---|
| committer | Barton E. Schaefer <schaefer@zsh.org> | 2016-01-08 20:36:50 -0800 |
| commit | 424b417063b50173bbd9dcf8a8252b281dcbcd50 (patch) | |
| tree | 8c5dd256043348e07fb8f3a8bc62d31d998713b6 /Src | |
| parent | 37513: fix typos; improve error cleanup and correct for signed/unsigned compi... (diff) | |
| download | zsh-424b417063b50173bbd9dcf8a8252b281dcbcd50.tar zsh-424b417063b50173bbd9dcf8a8252b281dcbcd50.tar.gz zsh-424b417063b50173bbd9dcf8a8252b281dcbcd50.tar.bz2 zsh-424b417063b50173bbd9dcf8a8252b281dcbcd50.tar.lz zsh-424b417063b50173bbd9dcf8a8252b281dcbcd50.tar.xz zsh-424b417063b50173bbd9dcf8a8252b281dcbcd50.tar.zst zsh-424b417063b50173bbd9dcf8a8252b281dcbcd50.zip | |
unposted: Src/builtin.c: refine READ_MSTREAM to avoid unsequenced evaluation
Diffstat (limited to 'Src')
| -rw-r--r-- | Src/builtin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/builtin.c b/Src/builtin.c index b1a0db8ae..5dce2d9f1 100644 --- a/Src/builtin.c +++ b/Src/builtin.c @@ -4063,7 +4063,7 @@ bin_print(char *name, char **args, Options ops, int func) #define READ_MSTREAM(BUF,FOUT) \ ((((count = ftell(FOUT)), (BUF = (char *)zalloc(count + 1))) && \ ((fseek(FOUT, 0L, SEEK_SET) == 0) && !(BUF[count] = '\0')) && \ - ((count = fread(BUF, 1, count, FOUT)) == count)) ? count : (size_t)-1) + (fread(BUF, 1, count, FOUT) == count)) ? count : (size_t)-1) #define CLOSE_MSTREAM(FOUT) fclose(FOUT) #endif |
