diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1998-10-06 06:37:36 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1998-10-06 06:37:36 +0000 |
commit | 947ff8a9a7e4f30b47c7015411c81d4f62c54768 (patch) | |
tree | dabef0d7effd15a49f4f19ac5fe4602c5e89725c /util.c | |
parent | 0e4a35327f61785bc8822da8f2fc82b6f0d3e010 (diff) | |
download | perl-947ff8a9a7e4f30b47c7015411c81d4f62c54768.tar.gz |
fix USE_THREADS coredump due to uninitialized PL_hv_fetch_ent_mh
p4raw-id: //depot/perl@1934
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -2836,7 +2836,7 @@ new_struct_thread(struct perl_thread *t) SvGROW(sv, sizeof(struct perl_thread) + 1); SvCUR_set(sv, sizeof(struct perl_thread)); thr = (Thread) SvPVX(sv); - /* debug */ +#ifdef DEBUGGING memset(thr, 0xab, sizeof(struct perl_thread)); PL_markstack = 0; PL_scopestack = 0; @@ -2844,7 +2844,10 @@ new_struct_thread(struct perl_thread *t) PL_retstack = 0; PL_dirty = 0; PL_localizing = 0; - /* end debug */ + Zero(&PL_hv_fetch_ent_mh, 1, HE); +#else + Zero(thr, 1, struct perl_thread); +#endif thr->oursv = sv; init_stacks(ARGS); |