about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2001-06-19 15:46:53 +0000
committerBart Schaefer <barts@users.sourceforge.net>2001-06-19 15:46:53 +0000
commit0672033cfc5bd1c8db810fd9c038f94472439a0c (patch)
tree42e0584efead7280b3478bfebce7b7e54e1d53c1
parent9b9e9401178190a75b03662416265993dea06f09 (diff)
downloadzsh-0672033cfc5bd1c8db810fd9c038f94472439a0c.tar.gz
zsh-0672033cfc5bd1c8db810fd9c038f94472439a0c.tar.xz
zsh-0672033cfc5bd1c8db810fd9c038f94472439a0c.zip
Compiler warnings.
-rw-r--r--ChangeLog4
-rw-r--r--Src/Zle/computil.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 0cf9a9028..d5ba6e647 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,10 @@
 	fix for reported problems on AIX 4.x. Still no feedback if it
 	finally works (or even compiles)
 
+2001-06-18  Bart Schaefer  <schaefer@zsh.org>
+
+	* 14965: Src/Zle/computil.c: Silence compiler warnings.
+
 2001-06-18  Sven Wischnowsky  <wischnow@zsh.org>
 
 	* 14962: Completion/Unix/Type/_path_files: make special-dirs
diff --git a/Src/Zle/computil.c b/Src/Zle/computil.c
index 4d795c815..9937e8215 100644
--- a/Src/Zle/computil.c
+++ b/Src/Zle/computil.c
@@ -2399,7 +2399,7 @@ cv_next(Cvdef d, char **sp, char **ap)
         return r;
 
     } else if (d->hassep) {
-        char *ns = strchr(s, d->sep), *as, *sap, sav;
+        char *ns = strchr(s, d->sep), *as = 0, *sap, sav = 0;
         int skip = 0;
 
         if (d->argsep && (as = strchr(s, d->argsep)) && (!ns || as <= ns)) {
@@ -2425,7 +2425,7 @@ cv_next(Cvdef d, char **sp, char **ap)
 
         return r;
     } else {
-        char *as = strchr(s, d->argsep), *sap, sav;
+        char *as = strchr(s, d->argsep), *sap, sav = 0;
 
         *sp = NULL;