about summary refs log tree commit diff
path: root/Src/builtin.c
diff options
context:
space:
mode:
authorBarton E. Schaefer <schaefer@zsh.org>2016-01-08 20:36:50 -0800
committerBarton E. Schaefer <schaefer@zsh.org>2016-01-08 20:36:50 -0800
commit424b417063b50173bbd9dcf8a8252b281dcbcd50 (patch)
tree8c5dd256043348e07fb8f3a8bc62d31d998713b6 /Src/builtin.c
parentfac7466d11a7a3de2375fab5c8ad84fff728d898 (diff)
downloadzsh-424b417063b50173bbd9dcf8a8252b281dcbcd50.tar.gz
zsh-424b417063b50173bbd9dcf8a8252b281dcbcd50.tar.xz
zsh-424b417063b50173bbd9dcf8a8252b281dcbcd50.zip
unposted: Src/builtin.c: refine READ_MSTREAM to avoid unsequenced evaluation
Diffstat (limited to 'Src/builtin.c')
-rw-r--r--Src/builtin.c2
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