about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2008-05-09 17:41:57 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2008-05-09 17:41:57 +0000
commitd2b0a6daa58c1347e4e6019f5cd95fdb9073e9be (patch)
treed56d48810d269ab22b683608c1b98470483f1221
parent81533bfbbce82859ea8663583380d0558781ae64 (diff)
downloadzsh-d2b0a6daa58c1347e4e6019f5cd95fdb9073e9be.tar.gz
zsh-d2b0a6daa58c1347e4e6019f5cd95fdb9073e9be.tar.xz
zsh-d2b0a6daa58c1347e4e6019f5cd95fdb9073e9be.zip
unposted: fix uninitialised variable
-rw-r--r--Src/prompt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/prompt.c b/Src/prompt.c
index 568c2e5ca..f83053a8f 100644
--- a/Src/prompt.c
+++ b/Src/prompt.c
@@ -1471,7 +1471,7 @@ match_named_colour(const char **teststrp)
 static int
 match_colour(const char **teststrp, int is_fg, int colour)
 {
-    int shft, on, named, tc;
+    int shft, on, named = 0, tc;
 
     if (teststrp) {
 	if ((named = ialpha(**teststrp))) {