2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-07-31 00:31:19 +00:00

Initialized more_options variable to avoid uninitialized error message

This commit is contained in:
Victor Hu
2017-04-25 16:51:24 -04:00
parent a417e49489
commit 3f03d53e8b

View File

@@ -649,7 +649,10 @@ sub process_request_nmap {
# get additional options from site table
my @nmap_options = xCAT::TableUtils->get_site_attribute("nmapoptions");
my $more_options = $nmap_options[0];
my $more_options = "";
if (defined($nmap_options[0])) {
$more_options = $nmap_options[0];
}
foreach my $ip6 (0, 1) { #first pass, ipv4, second pass ipv6
if ($ip6 and scalar(@ip6s)) {