summaryrefslogtreecommitdiff
path: root/perl.c
diff options
context:
space:
mode:
authorMalcolm Beattie <mbeattie@sable.ox.ac.uk>1998-02-20 15:46:15 +0000
committerMalcolm Beattie <mbeattie@sable.ox.ac.uk>1998-02-20 15:46:15 +0000
commit78857c3c631dc8d94f4168aa465a27b5efceb36e (patch)
tree5ac10ff64170eb2bda55088542b20c42c3171438 /perl.c
parentcf042ed955280d58d288e6d607f95462cfc5db6c (diff)
downloadperl-78857c3c631dc8d94f4168aa465a27b5efceb36e.tar.gz
Initialise $@ early (fixes t/lib/ph.t for threaded perl).
p4raw-id: //depot/perl@560
Diffstat (limited to 'perl.c')
-rw-r--r--perl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/perl.c b/perl.c
index 418c491057..ec232e48ac 100644
--- a/perl.c
+++ b/perl.c
@@ -2839,6 +2839,7 @@ init_main_thread()
sv_setpvn(bodytarget, "", 0);
formtarget = bodytarget;
thr->errsv = newSVpv("", 0);
+ (void) find_threadsv("@"); /* Ensure $@ is initialised early */
return thr;
}
#endif /* USE_THREADS */