Commit 548e7073 authored by Leigh B Stoller's avatar Leigh B Stoller Committed by Ryan Jackson

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

by Hussam.
(cherry picked from commit a09dbb59)
parent 6bc32758
......@@ -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