summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJaska Uimonen <jaska.uimonen@helsinki.fi>2015-07-27 10:59:58 +0300
committerWill Estes <westes575@gmail.com>2015-08-06 09:27:30 -0400
commit5f23fc003369f891f3a2e2ff5c6edef3044f513f (patch)
tree2be257d5ba0eaa4cb3980da19cf7caaea1620a89 /src
parent4f2ae90b2826d2b87c2ff50ba13c0a0c7bb18eb0 (diff)
fix possible uninitialized array values
Diffstat (limited to 'src')
-rw-r--r--src/dfa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dfa.c b/src/dfa.c
index c16a010..0a68e3a 100644
--- a/src/dfa.c
+++ b/src/dfa.c
@@ -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.