From 601cef4b281e5f6c6bcbb12b7843ee021e00fcb2 Mon Sep 17 00:00:00 2001 From: Explorer09 Date: Tue, 24 Apr 2018 23:24:11 +0800 Subject: [PATCH] Explicitly initialize ndtbl[], sctbl[] and ccltab[] to {NULL}. Signed-off-by: Kang-Che Sung --- src/sym.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sym.c b/src/sym.c index 6614623b3..c33805feb 100644 --- a/src/sym.c +++ b/src/sym.c @@ -52,9 +52,9 @@ typedef struct hash_entry **hash_table; #define START_COND_HASH_SIZE 101 #define CCL_HASH_SIZE 101 -static struct hash_entry *ndtbl[NAME_TABLE_HASH_SIZE]; -static struct hash_entry *sctbl[START_COND_HASH_SIZE]; -static struct hash_entry *ccltab[CCL_HASH_SIZE]; +static struct hash_entry *ndtbl[NAME_TABLE_HASH_SIZE] = {NULL}; +static struct hash_entry *sctbl[START_COND_HASH_SIZE] = {NULL}; +static struct hash_entry *ccltab[CCL_HASH_SIZE] = {NULL}; /* declare functions that have forward references */