From: Jarkko Hietaniemi Date: Mon, 29 Oct 2001 12:31:34 +0000 (+0000) Subject: Integrate change #12752 from maintperl; X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=84414e3e2022eb9024bf2a18e78e66ce71d289e0;p=p5sagit%2Fp5-mst-13.2.git Integrate change #12752 from maintperl; croak(Nullch) wasn't printing the contents of ERRSV if there was no outer eval (bug in change#6125) p4raw-link: @12752 on //depot/maint-5.6/perl: f106aadabce363af9302c25bec7308d85ddd04a2 p4raw-link: @6125 on //depot/perl: 9983fa3c886b6f0a857997142e62341929a9b601 p4raw-id: //depot/perl@12754 p4raw-integrated: from //depot/maint-5.6/perl@12753 'merge in' util.c (@12668..) --- diff --git a/util.c b/util.c index 75f48ef..c5b32e3 100644 --- a/util.c +++ b/util.c @@ -1227,6 +1227,9 @@ Perl_vcroak(pTHX_ const char* pat, va_list *args) PL_restartop = die_where(message, msglen); JMPENV_JUMP(3); } + else if (!message) + message = SvPVx(ERRSV, msglen); + { #ifdef USE_SFIO /* SFIO can really mess with your errno */