summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2005-05-12 09:52:12 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2005-05-12 09:52:12 +0000
commit5059e0eb8a88d633e26723e00d5f433320eda1e5 (patch)
tree62022cb3b888f91e24d097e6f9d7902785f78a84 /toke.c
parentde5763b09f57cd1553a966128894c602f4a35b8e (diff)
downloadperl-5059e0eb8a88d633e26723e00d5f433320eda1e5.tar.gz
SvUPGRADE doesn't return false.
p4raw-id: //depot/perl@24451
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/toke.c b/toke.c
index 72bedd9950..a78866cc58 100644
--- a/toke.c
+++ b/toke.c
@@ -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;