Skip to content

Commit

Permalink
Explicitly initialize ndtbl[], sctbl[] and ccltab[] to {NULL}.
Browse files Browse the repository at this point in the history
Signed-off-by: Kang-Che Sung <[email protected]>
  • Loading branch information
Explorer09 authored and westes committed Apr 25, 2024
1 parent 26673bd commit 601cef4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sym.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 601cef4

Please sign in to comment.