diff --git a/color.c b/color.c index 8f85153d0d..c809548991 100644 --- a/color.c +++ b/color.c @@ -200,7 +200,7 @@ int color_parse_mem(const char *value, int value_len, char *dst) /* [fg [bg]] [attr]... */ while (len > 0) { const char *word = ptr; - struct color c; + struct color c = { COLOR_UNSPECIFIED }; int val, wordlen = 0; while (len > 0 && !isspace(word[wordlen])) {