about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBarton E. Schaefer <schaefer@zsh.org>2016-04-29 13:15:33 -0700
committerBarton E. Schaefer <schaefer@zsh.org>2016-04-29 13:15:33 -0700
commit9afb67eb6561e922fae29e7227a58517f73ad050 (patch)
tree77a7ba947c4257c9c48017a0c7aa7cfafd70b28d
parent59de766e262fe778b865d17243eb831ed391b9da (diff)
downloadzsh-9afb67eb6561e922fae29e7227a58517f73ad050.tar.gz
zsh-9afb67eb6561e922fae29e7227a58517f73ad050.tar.xz
zsh-9afb67eb6561e922fae29e7227a58517f73ad050.zip
unposted: silence spurious compiler warning
-rw-r--r--ChangeLog2
-rw-r--r--Src/builtin.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 8f98a7cd5..190646841 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2016-04-29  Barton E. Schaefer  <schaefer@zsh.org>
 
+	* unposted: Src/builtin.c: silence spurious compiler warning
+
 	* 38358: Test/C02cond.ztst: "fgrep --" for noatime check in case
 	a mount point is named "-" as in Fedora mock environment
 
diff --git a/Src/builtin.c b/Src/builtin.c
index ad01ad4f1..6f07fc678 100644
--- a/Src/builtin.c
+++ b/Src/builtin.c
@@ -4048,7 +4048,7 @@ bin_print(char *name, char **args, Options ops, int func)
     int flags[6], *len;
     char *start, *endptr, *c, *d, *flag, *buf = NULL, spec[14], *fmt = NULL;
     char **first, **argp, *curarg, *flagch = "'0+- #", save = '\0', nullstr = '\0';
-    size_t rcount, count = 0;
+    size_t rcount = 0, count = 0;
     FILE *fout = stdout;
 #ifdef HAVE_OPEN_MEMSTREAM
     size_t mcount;