From 13615d09538704aa83caf06208019dcadb704bd8 Mon Sep 17 00:00:00 2001 From: Mark-Weston Date: Thu, 30 Aug 2018 11:21:27 +0300 Subject: [PATCH] build: fix compilation when CC=tcc Signed-off-by: Mark-Weston --- src/global.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/global.c b/src/global.c index 04755599..431a2097 100644 --- a/src/global.c +++ b/src/global.c @@ -229,10 +229,10 @@ regmatch_t regmatches[10]; int hilite_attribute = A_REVERSE; /* The curses attribute we use to highlight something. */ #ifdef ENABLE_COLOR -colortype* color_combo[] = {NULL}; +colortype* color_combo[NUMBER_OF_ELEMENTS] = {NULL}; /* The color combinations for interface elements given in the rcfile. */ #endif -int interface_color_pair[] = {0}; +int interface_color_pair[NUMBER_OF_ELEMENTS] = {0}; /* The processed color pairs for the interface elements. */ char *homedir = NULL;