commit 13615d09538704aa83caf06208019dcadb704bd8
parent 921f8ae4c97ee972a6957d45f5449fa0d2da59d2
Author: Mark-Weston <markweston@cock.li>
Date: Thu, 30 Aug 2018 11:21:27 +0300
build: fix compilation when CC=tcc
Signed-off-by: Mark-Weston <markweston@cock.li>
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git 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;