commit 78bc8b698c15827f31c0adff002d79a5cdf3e8fa
parent d58ef8d5790b07f384dff7cd128baa877c22e93d
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Mon, 10 Jul 2017 10:18:10 +0200
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 *'.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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};