summaryrefslogtreecommitdiffstats
path: root/perl-install/bootloader.pm
diff options
context:
space:
mode:
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 {