Avoid un-init perl_debug_pad in clones
authorNick Ing-Simmons <nik@tiuk.ti.com>
Wed, 2 Jan 2002 16:09:43 +0000 (16:09 +0000)
committerNick Ing-Simmons <nik@tiuk.ti.com>
Wed, 2 Jan 2002 16:09:43 +0000 (16:09 +0000)
p4raw-id: //depot/perlio@14017

sv.c

diff --git a/sv.c b/sv.c
index 1dd95d8..ba51738 100644 (file)
--- a/sv.c
+++ b/sv.c
@@ -9680,6 +9680,7 @@ perl_clone_using(PerlInterpreter *proto_perl, UV flags,
     PL_savestack = 0;
     PL_retstack = 0;
     PL_sig_pending = 0;
+    Zero(&PL_debug_pad, 1, struct perl_debug_pad); 
 #  else        /* !DEBUGGING */
     Zero(my_perl, 1, PerlInterpreter);
 #  endif       /* DEBUGGING */