about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorWayne Davison <wayned@users.sourceforge.net>2004-02-19 09:11:40 +0000
committerWayne Davison <wayned@users.sourceforge.net>2004-02-19 09:11:40 +0000
commitcd7bfcf690bfb70c8a652aafe1fa78c3d9b3dcdb (patch)
treeea623c3d33546af5343b3f6e12445c5b35a77401 /Src
parent6d171f509b5b62ed2d5e473e6538eacce24d6657 (diff)
downloadzsh-cd7bfcf690bfb70c8a652aafe1fa78c3d9b3dcdb.tar.gz
zsh-cd7bfcf690bfb70c8a652aafe1fa78c3d9b3dcdb.tar.xz
zsh-cd7bfcf690bfb70c8a652aafe1fa78c3d9b3dcdb.zip
Silenced some compiler warnings about uninitialized variables.
Diffstat (limited to 'Src')
-rw-r--r--Src/Zle/complist.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Src/Zle/complist.c b/Src/Zle/complist.c
index b260bfd7d..ea86d79e9 100644
--- a/Src/Zle/complist.c
+++ b/Src/Zle/complist.c
@@ -1936,14 +1936,14 @@ domenuselect(Hookdef dummy, Chdata dat)
     static char *lastsearch = NULL;
     Cmatch **p;
     Cmgroup *pg;
-    Thingy cmd;
+    Thingy cmd = 0;
     int     do_last_key = 0;
     Menustack u = NULL;
     int i = 0, acc = 0, wishcol = 0, setwish = 0, oe = onlyexpl, wasnext = 0;
     int space, lbeg = 0, step = 1, wrap, pl = nlnct, broken = 0, first = 1;
     int nolist = 0, mode = 0, modecs, modell, modelen;
     char *s;
-    char status[MAX_STATUS], *modeline;
+    char status[MAX_STATUS], *modeline = NULL;
 
     msearchstack = NULL;
     msearchstr = "";
@@ -2166,8 +2166,8 @@ domenuselect(Hookdef dummy, Chdata dat)
                    (mode == MM_INTER && (cmd == Th(z_selfinsert) ||
                                          cmd == Th(z_selfinsertunmeta)))) {
             char *saveline = NULL;
-            int savell;
-            int savecs;
+            int savell = 0;
+            int savecs = 0;
 	    Menustack s = (Menustack) zhalloc(sizeof(*s));
 
 	    s->prev = u;