mmdebstrap: check for defined-ness before integer comparison

This commit is contained in:
Johannes 'josch' Schauer 2020-11-29 20:54:50 +01:00
parent 165cc82f97
commit 85328c5c7e
Signed by: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -3972,7 +3972,7 @@ sub get_sourceslist_by_suite {
} }
} }
close $fh; close $fh;
if ($matching_version >= 11) { if (defined $matching_version and $matching_version >= 11) {
$bullseye_or_later = 1; $bullseye_or_later = 1;
} }
} else { } else {