mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 11:22:23 +00:00
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
This commit is contained in:
parent
7c31e1ef0f
commit
f7fc885dec
@ -64,7 +64,7 @@ int qemuMigrationToFile(struct qemud_driver *driver, virDomainObjPtr vm,
|
||||
int fd, off_t offset, const char *path,
|
||||
const char *compressor,
|
||||
bool is_reg, bool bypassSecurityDriver)
|
||||
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) ATTRIBUTE_NONNULL(6)
|
||||
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) ATTRIBUTE_NONNULL(5)
|
||||
ATTRIBUTE_RETURN_CHECK;
|
||||
|
||||
#endif /* __QEMU_MIGRATION_H__ */
|
||||
|
Loading…
x
Reference in New Issue
Block a user