diff options
author | Jaska Uimonen <jaska.uimonen@helsinki.fi> | 2015-07-27 10:59:58 +0300 |
---|---|---|
committer | Will Estes <westes575@gmail.com> | 2015-08-06 09:27:30 -0400 |
commit | 5f23fc003369f891f3a2e2ff5c6edef3044f513f (patch) | |
tree | 2be257d5ba0eaa4cb3980da19cf7caaea1620a89 /src/dfa.c | |
parent | 4f2ae90b2826d2b87c2ff50ba13c0a0c7bb18eb0 (diff) |
fix possible uninitialized array values
Diffstat (limited to 'src/dfa.c')
-rw-r--r-- | src/dfa.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -400,7 +400,7 @@ void ntod () * from 1 to CSIZE, so their size must be CSIZE + 1. */ int duplist[CSIZE + 1], state[CSIZE + 1]; - int targfreq[CSIZE + 1], targstate[CSIZE + 1]; + int targfreq[CSIZE + 1] = {0}, targstate[CSIZE + 1]; /* accset needs to be large enough to hold all of the rules present * in the input, *plus* their YY_TRAILING_HEAD_MASK variants. |