summaryrefslogtreecommitdiff
path: root/mro.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2007-09-26 16:32:45 +0000
committerNicholas Clark <nick@ccl4.org>2007-09-26 16:32:45 +0000
commit84dccb35f7809a3cd00c6b11d0a9aa40b70e045f (patch)
treeca3fa7a83fc4bb3db2ceeec597b49447e94fb6cf /mro.c
parent1a36314cbeab52a90bc0d56b6f2c61f22e03df5d (diff)
downloadperl-84dccb35f7809a3cd00c6b11d0a9aa40b70e045f.tar.gz
Change 31977 introduced a bug (failing to set the return value of
mro::get_linear_isa() when passed a second parameter). However, there were no tests for this. Fix both. p4raw-id: //depot/perl@31981
Diffstat (limited to 'mro.c')
-rw-r--r--mro.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mro.c b/mro.c
index 525076f2eb..f3db7745aa 100644
--- a/mro.c
+++ b/mro.c
@@ -718,7 +718,7 @@ XS(XS_mro_get_linear_isa) {
const struct mro_alg *const algo = S_get_mro_from_name(aTHX_ which);
if (!algo)
Perl_croak(aTHX_ "Invalid mro name: '%s'", which);
- algo->resolve(aTHX_ class_stash, 0);
+ RETVAL = algo->resolve(aTHX_ class_stash, 0);
}
else {
RETVAL = mro_get_linear_isa(class_stash);