From 78bc8b698c15827f31c0adff002d79a5cdf3e8fa Mon Sep 17 00:00:00 2001 From: Benno Schulenberg <bensberg@telfort.nl> Date: Mon, 10 Jul 2017 10:18:10 +0200 Subject: [PATCH] tweaks: avoid a clang warning about an expression being treated as NULL When compiling with 'clang', it would say: warning: expression which evaluates to zero treated as a null pointer constant of type 'char *'. --- src/global.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/global.c b/src/global.c index 8ab88926..6ae36816 100644 --- a/src/global.c +++ b/src/global.c @@ -227,7 +227,7 @@ regmatch_t regmatches[10]; int hilite_attribute = A_REVERSE; /* The curses attribute we use to highlight something. */ #ifndef DISABLE_COLOR -char* specified_color_combo[] = {'\0'}; +char* specified_color_combo[] = {NULL}; /* The color combinations as specified in the rcfile. */ #endif int interface_color_pair[] = {0}; -- GitLab