]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Fix qemuMigrationToFile nonull annotation
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 5 May 2011 10:30:26 +0000 (11:30 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Thu, 5 May 2011 11:53:23 +0000 (12:53 +0100)
commitf7fc885dec1bd65ebb336a60715b88616d2eb681
tree724d56af72d8384a80ab9cb6fd466cb8e93834e0
parent7c31e1ef0fabebf2d46a723ea0af7ad490e7dbef
Fix qemuMigrationToFile nonull annotation

The qemuMigrationToFile method was accidentally annotated for
the 'compressor' parameter to be non-null, instead of the
'path' parameter. Thus GCC with -O2, unhelpfully deleted the
entire 'if (compressor == NULL)' block of code during
optimization. Thus NULL was passed to virCommandNew() with
predictably bad results.

* src/qemu/qemu_migration.h: Fix non-null annotation to be
  against path instead of compressor
src/qemu/qemu_migration.h