diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 2000-02-11 16:36:14 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 2000-02-11 16:36:14 +0000 |
commit | 8ecf71871febb31312d723e89648aadebf858ae1 (patch) | |
tree | 685e6020110de947779cf6590928b4d8ec20224f /regcomp.c | |
parent | 9f3d182ed95630da223ec0d99832141e262ccc05 (diff) | |
download | perl-8ecf71871febb31312d723e89648aadebf858ae1.tar.gz |
fix uninitialized memory reads found by purify
p4raw-id: //depot/perl@5063
Diffstat (limited to 'regcomp.c')
-rw-r--r-- | regcomp.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -277,6 +277,7 @@ S_cl_is_anything(pTHX_ struct regnode_charclass_class *cl) STATIC void S_cl_init(pTHX_ struct regnode_charclass_class *cl) { + Zero(cl, 1, struct regnode_charclass_class); cl->type = ANYOF; cl_anything(cl); } @@ -284,10 +285,9 @@ S_cl_init(pTHX_ struct regnode_charclass_class *cl) STATIC void S_cl_init_zero(pTHX_ struct regnode_charclass_class *cl) { + Zero(cl, 1, struct regnode_charclass_class); cl->type = ANYOF; cl_anything(cl); - ANYOF_CLASS_ZERO(cl); - ANYOF_BITMAP_ZERO(cl); if (LOC) cl->flags |= ANYOF_LOCALE; } |