]> git.proxmox.com Git - qemu-server.git/commitdiff
avoid another compile warning
authorDietmar Maurer <dietmar@proxmox.com>
Mon, 12 Aug 2013 07:53:02 +0000 (09:53 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Mon, 12 Aug 2013 07:53:02 +0000 (09:53 +0200)
PVE/API2/Qemu.pm

index a7014867531c45124f58f498d301e431a3bdee29..46f7ae0122cadaaa34ee4d94e433400fe408d2c1 100644 (file)
@@ -1551,7 +1551,7 @@ __PACKAGE__->register_method({
        # read spice ticket from STDIN
        my $spice_ticket;
        if ($stateuri && ($stateuri eq 'tcp') && $migratedfrom && ($rpcenv->{type} eq 'cli')) {
-           if (my $line = <>) {
+           if (defined(my $line = <>)) {
                chomp $line;
                $spice_ticket = $line;
            }