summary refs log tree commit diff
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2001-12-18 01:21:26 +0000
committerClint Adams <clint@users.sourceforge.net>2001-12-18 01:21:26 +0000
commit9cf6e76e7d0e58c551c583540d71e5ca42a691c6 (patch)
tree5dd3dae39e32b1cf55186abc32575aa1f86d42dc
parent6feb3f57f4c5524f2a047d76cbcd21e84cebfd27 (diff)
downloadzsh-9cf6e76e7d0e58c551c583540d71e5ca42a691c6.tar.gz
zsh-9cf6e76e7d0e58c551c583540d71e5ca42a691c6.tar.xz
zsh-9cf6e76e7d0e58c551c583540d71e5ca42a691c6.zip
unposted: initialize save to NULL to avoid compiler warning.
-rw-r--r--ChangeLog3
-rw-r--r--Src/builtin.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 5b810847a..6e6f2a1d0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2001-12-18  Clint Adams  <clint@zsh.org>
 
+	* unposted: Src/builtin.c: initialize save to NULL to avoid
+	compiler warning.
+
 	* 16361: zshconfig.ac, Src/input.c:
 	include <stdio.h> to avoid implicit declarations.
 
diff --git a/Src/builtin.c b/Src/builtin.c
index 0a399e068..f54d9587c 100644
--- a/Src/builtin.c
+++ b/Src/builtin.c
@@ -2896,7 +2896,7 @@ bin_print(char *name, char **args, char *ops, int func)
     int nnl = 0, ret = 0, maxarg = 0;
     int flags[5], *len;
     char *start, *endptr, *c, *d, *flag, spec[11], *fmt = NULL;
-    char **first, *curarg, *flagch = "0+- #", save, nullstr = '\0';
+    char **first, *curarg, *flagch = "0+- #", save = NULL, nullstr = '\0';
     zlong count;
     FILE *fout = stdout;