Mercurial > hg > Applications > Grep
diff regexParser/regexParser.cc @ 260:3f3c9902bb6d
initialize node in allocateNode()
author | Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 26 Jan 2016 14:30:20 +0900 |
parents | 61d4d466e64c |
children | 2f3e7bba038e |
line wrap: on
line diff
--- a/regexParser/regexParser.cc Tue Jan 26 13:34:33 2016 +0900 +++ b/regexParser/regexParser.cc Tue Jan 26 14:30:20 2016 +0900 @@ -18,10 +18,12 @@ NodePtr allocateNode() { NodePtr n = NEW(Node); n->cc = NULL; + n->stateNum = 0; + n->nextStateNum = 0; + n->state = NULL; + n->nextState = NULL; n->left = NULL; n->right = NULL; - n->stateNum = 0; - n->nextStateNum = 0; return n; }