summaryrefslogtreecommitdiff
path: root/perly.y
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2009-09-24 14:27:38 +0100
committerNicholas Clark <nick@ccl4.org>2009-09-24 14:27:38 +0100
commita22f28a4268aa03ce2bafaf594271b8ff764a5f8 (patch)
treeb1e06367f9bd4ebe419f79abd9f1da434a647bea /perly.y
parentf4ddfa9ac388a4921f01371fb4d4285d91f92ce5 (diff)
downloadperl-a22f28a4268aa03ce2bafaf594271b8ff764a5f8.tar.gz
Fix building MAD with C++ - a MAD_PV of "" is illegal, as it will be free()d.
Diffstat (limited to 'perly.y')
-rw-r--r--perly.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/perly.y b/perly.y
index bcdd434eca..df5cf462f8 100644
--- a/perly.y
+++ b/perly.y
@@ -656,7 +656,7 @@ use : USE startsub
token_getmad($7,$$,';');
if (PL_parser->rsfp_filters &&
AvFILLp(PL_parser->rsfp_filters) >= 0)
- append_madprops(newMADPROP('!', MAD_PV, "", 0), $$, 0);
+ append_madprops(newMADPROP('!', MAD_NULL, NULL, 0), $$, 0);
#else
utilize(IVAL($1), $2, $4, $5, $6);
$$ = (OP*)NULL;