XS_VERSION_BOOTCHECK is read only.
Nicholas Clark [Tue, 7 Jun 2005 12:07:49 +0000 (12:07 +0000)]
p4raw-id: //depot/perl@24724

XSUB.h

diff --git a/XSUB.h b/XSUB.h
index b59a95f..24a5607 100644 (file)
--- a/XSUB.h
+++ b/XSUB.h
@@ -261,7 +261,7 @@ Rethrows a previously caught exception.  See L<perlguts/"Exception Handling">.
 #  define XS_VERSION_BOOTCHECK \
     STMT_START {                                                       \
        SV *_sv; STRLEN n_a;                                            \
-       const char *vn = Nullch, *module = SvPV(ST(0),n_a);             \
+       const char *vn = Nullch, *module = SvPV_const(ST(0),n_a);       \
        if (items >= 2)  /* version supplied as bootstrap arg */        \
            _sv = ST(1);                                                \
        else {                                                          \