summary refs log tree commit diff
diff options
context:
space:
mode:
-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))) {