From: Gurusamy Sarathy Date: Tue, 28 Oct 1997 21:51:25 +0000 (-0500) Subject: [win32] Sync yet another patch (this one manually edited): X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e41fc98bd7f2023e39e515f98825ef0e1db2c6e4;p=p5sagit%2Fp5-mst-13.2.git [win32] Sync yet another patch (this one manually edited): Message-Id: <199710290251.VAA14362@aatma.engin.umich.edu> Subject: [PATCH] Re: local($@) gives core dump p4raw-id: //depot/win32/perl@308 --- diff --git a/pp_ctl.c b/pp_ctl.c index d9f985e..834f0c0 100644 --- a/pp_ctl.c +++ b/pp_ctl.c @@ -1050,11 +1050,14 @@ die_where(char *message) if (svp) { if (!SvIOK(*svp)) { static char prefix[] = "\t(in cleanup) "; + SV *err = ERRSV; sv_upgrade(*svp, SVt_IV); (void)SvIOK_only(*svp); - SvGROW(ERRSV, SvCUR(ERRSV)+sizeof(prefix)+klen); - sv_catpvn(ERRSV, prefix, sizeof(prefix)-1); - sv_catpvn(ERRSV, message, klen); + if (!SvPOK(err)) + sv_setpv(err,""); + SvGROW(err, SvCUR(err)+sizeof(prefix)+klen); + sv_catpvn(err, prefix, sizeof(prefix)-1); + sv_catpvn(err, message, klen); } sv_inc(*svp); }