initialize node_t::mask to NULL

This commit is contained in:
John Wiegley 2004-07-28 03:44:58 -04:00
parent d7dd02276c
commit 399a0c9ffc

2
expr.h
View file

@ -65,7 +65,7 @@ struct node_t
mask_t * mask; mask_t * mask;
node_t(const kind_t _type) node_t(const kind_t _type)
: type(_type), left(NULL), right(NULL) {} : type(_type), left(NULL), right(NULL), mask(NULL) {}
~node_t() { ~node_t() {
if (mask) delete mask; if (mask) delete mask;