summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2003-03-12 10:59:03 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2003-03-12 10:59:03 +0000
commita73e8557ffb104ab62198e9838714843724d84e5 (patch)
tree5608940e6443b9f13c3b998cc9a693fb3984450f /sv.c
parentbaaa5b5cf702861755b0f4ccba5e5e3aba104fae (diff)
downloadperl-a73e8557ffb104ab62198e9838714843724d84e5.tar.gz
Another finding by IRIX cc: non-void function
sv_cat_decode() should return a value. p4raw-id: //depot/perl@18954
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sv.c b/sv.c
index 955153a8bb..4f6d59c46a 100644
--- a/sv.c
+++ b/sv.c
@@ -11499,8 +11499,8 @@ bool
Perl_sv_cat_decode(pTHX_ SV *dsv, SV *encoding,
SV *ssv, int *offset, char *tstr, int tlen)
{
+ bool ret = FALSE;
if (SvPOK(ssv) && SvPOK(dsv) && SvROK(encoding) && offset) {
- bool ret = FALSE;
SV *offsv;
dSP;
ENTER;
@@ -11521,8 +11521,9 @@ Perl_sv_cat_decode(pTHX_ SV *dsv, SV *encoding,
PUTBACK;
FREETMPS;
LEAVE;
- return ret;
}
- Perl_croak(aTHX_ "Invalid argument to sv_cat_decode.");
+ else
+ Perl_croak(aTHX_ "Invalid argument to sv_cat_decode");
+ return ret;
}