diff options
author | Nicholas Clark <nick@ccl4.org> | 2007-09-26 16:32:45 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2007-09-26 16:32:45 +0000 |
commit | 84dccb35f7809a3cd00c6b11d0a9aa40b70e045f (patch) | |
tree | ca3fa7a83fc4bb3db2ceeec597b49447e94fb6cf /mro.c | |
parent | 1a36314cbeab52a90bc0d56b6f2c61f22e03df5d (diff) | |
download | perl-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |