Commit a09dbb59 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Watch for an uninitialized variable that is an actual bug, as reported

by Hussam.
parent 59415451
......@@ -848,7 +848,13 @@ sub stateTransition($$) {
my $r = DBQueryWarn("select osid,def_boot_osid from nodes ".
"where node_id='$node'");
my ($osid,$defosid) = $r->fetchrow();
if ($osid ne $defosid) {
if (! (defined($osid) && defined($defosid))) {
info("$node: osid not defined\n")
if (!defined($osid));
info("$node: def_boot_osid not defined\n")
if (!defined($defosid));
elsif ($osid ne $defosid) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment