diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2005-05-12 09:52:12 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2005-05-12 09:52:12 +0000 |
commit | 5059e0eb8a88d633e26723e00d5f433320eda1e5 (patch) | |
tree | 62022cb3b888f91e24d097e6f9d7902785f78a84 /toke.c | |
parent | de5763b09f57cd1553a966128894c602f4a35b8e (diff) | |
download | perl-5059e0eb8a88d633e26723e00d5f433320eda1e5.tar.gz |
SvUPGRADE doesn't return false.
p4raw-id: //depot/perl@24451
Diffstat (limited to 'toke.c')
-rw-r--r-- | toke.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -2146,8 +2146,7 @@ Perl_filter_add(pTHX_ filter_t funcp, SV *datasv) PL_rsfp_filters = newAV(); if (!datasv) datasv = NEWSV(255,0); - if (!SvUPGRADE(datasv, SVt_PVIO)) - Perl_die(aTHX_ "Can't upgrade filter_add data to SVt_PVIO"); + (void)SvUPGRADE(datasv, SVt_PVIO); u.filter = funcp; IoANY(datasv) = u.iop; /* stash funcp into spare field */ IoFLAGS(datasv) |= IOf_FAKE_DIRP; |