summaryrefslogtreecommitdiffstats
path: root/perl-install/bootloader.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2005-03-01 20:04:39 +0000
committerPascal Rigaux <pixel@mandriva.com>2005-03-01 20:04:39 +0000
commit72643006c4d1c34e29de80917775f5f0088de5c1 (patch)
tree949e906762e38b30be7ebbee48345f2ba77821db /perl-install/bootloader.pm
parentecdc43cec342a9d67d2de93265991168a0d88aab (diff)
downloaddrakx-72643006c4d1c34e29de80917775f5f0088de5c1.tar
drakx-72643006c4d1c34e29de80917775f5f0088de5c1.tar.gz
drakx-72643006c4d1c34e29de80917775f5f0088de5c1.tar.bz2
drakx-72643006c4d1c34e29de80917775f5f0088de5c1.tar.xz
drakx-72643006c4d1c34e29de80917775f5f0088de5c1.zip
fix buggy get_append_memsize() (bugzilla #13874)
Diffstat (limited to 'perl-install/bootloader.pm')
-rw-r--r--perl-install/bootloader.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm
index bd3459a11..f64d0a093 100644
--- a/perl-install/bootloader.pm
+++ b/perl-install/bootloader.pm
@@ -585,7 +585,8 @@ sub may_append_with_key {
sub get_append_memsize {
my ($b) = @_;
my ($_simple, $dict) = unpack_append($b->{perImageAppend});
- find { $_->[0] eq 'mem' && append__mem_is_memsize($_->[1]) } @$dict;
+ my $e = find { $_->[0] eq 'mem' && append__mem_is_memsize($_->[1]) } @$dict;
+ $e && $e->[1];
}
sub set_append_memsize {