summaryrefslogtreecommitdiff
path: root/Src/utils.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@users.sourceforge.net>2007-10-31 06:22:57 +0000
committerWayne Davison <wayned@users.sourceforge.net>2007-10-31 06:22:57 +0000
commited1195ba58c1cab0fd4caf2b4064620e1b364c3c (patch)
tree36de0b48385db6661b141495ce838628c301748b /Src/utils.c
parent63e7d1d92012ad274c840f97e1a0bbe5a02a2367 (diff)
downloadzsh-ed1195ba58c1cab0fd4caf2b4064620e1b364c3c.tar.gz
zsh-ed1195ba58c1cab0fd4caf2b4064620e1b364c3c.zip
Fixed the use of an uninitialized 'x' in spckword() if shout is NULL.
Diffstat (limited to 'Src/utils.c')
-rw-r--r--Src/utils.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Src/utils.c b/Src/utils.c
index d01ec8634..9825dfbc2 100644
--- a/Src/utils.c
+++ b/Src/utils.c
@@ -2310,7 +2310,8 @@ spckword(char **s, int hist, int cmd, int ask)
fflush(shout);
zbeep();
x = getquery("nyae \t", 0);
- }
+ } else
+ x = 'n';
} else
x = 'y';
if (x == 'y' || x == ' ' || x == '\t') {