diff --git a/xCAT-server-2.0/lib/xcat/plugins/tabutils.pm b/xCAT-server-2.0/lib/xcat/plugins/tabutils.pm index b5c884fea..9aeee066d 100644 --- a/xCAT-server-2.0/lib/xcat/plugins/tabutils.pm +++ b/xCAT-server-2.0/lib/xcat/plugins/tabutils.pm @@ -189,8 +189,8 @@ sub tabrestore { } my $offset=1; my $nextchar; - my $ent = ""; - while ($ent eq "") { + my $ent; + while (not defined $ent) { $offset = index($line,'"',$offset); $offset++; if ($offset <=0) {