mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-07 07:02:09 +00:00
fix warning about uninitialized value
This commit is contained in:
parent
7dbff9d2f8
commit
760fb3c842
@ -1551,9 +1551,10 @@ __PACKAGE__->register_method({
|
|||||||
# read spice ticket from STDIN
|
# read spice ticket from STDIN
|
||||||
my $spice_ticket;
|
my $spice_ticket;
|
||||||
if ($stateuri && ($stateuri eq 'tcp') && $migratedfrom && ($rpcenv->{type} eq 'cli')) {
|
if ($stateuri && ($stateuri eq 'tcp') && $migratedfrom && ($rpcenv->{type} eq 'cli')) {
|
||||||
my $line = <>;
|
if (my $line = <>) {
|
||||||
chomp $line;
|
chomp $line;
|
||||||
$spice_ticket = $line if $line;
|
$spice_ticket = $line;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
my $storecfg = PVE::Storage::config();
|
my $storecfg = PVE::Storage::config();
|
||||||
|
Loading…
Reference in New Issue
Block a user