fix warning about uninitialized value

This commit is contained in:
Dietmar Maurer 2013-08-12 09:47:02 +02:00
parent 7dbff9d2f8
commit 760fb3c842

View File

@ -1551,9 +1551,10 @@ __PACKAGE__->register_method({
# read spice ticket from STDIN
my $spice_ticket;
if ($stateuri && ($stateuri eq 'tcp') && $migratedfrom && ($rpcenv->{type} eq 'cli')) {
my $line = <>;
chomp $line;
$spice_ticket = $line if $line;
if (my $line = <>) {
chomp $line;
$spice_ticket = $line;
}
}
my $storecfg = PVE::Storage::config();