This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
universal.c:croak_xs_usage: Don’t fetch context twice
authorFather Chrysostomos <sprout@cpan.org>
Mon, 15 Sep 2014 13:22:30 +0000 (06:22 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Mon, 15 Sep 2014 13:22:30 +0000 (06:22 -0700)
universal.c

index 825dff5..906f74c 100644 (file)
@@ -326,7 +326,7 @@ Perl_croak_xs_usage(const CV *const cv, const char *const params)
 
        /* Pants. I don't think that it should be possible to get here. */
        /* diag_listed_as: SKIPME */
-       Perl_croak_nocontext("Usage: CODE(0x%"UVxf")(%s)", PTR2UV(cv), params);
+       Perl_croak(aTHX_ "Usage: CODE(0x%"UVxf")(%s)", PTR2UV(cv), params);
     }
 }