]> git.proxmox.com Git - pve-qemu-kvm.git/blobdiff - debian/patches/pve/0035-fix-possible-unitialised-return-value.patch
update to 2.7
[pve-qemu-kvm.git] / debian / patches / pve / 0035-fix-possible-unitialised-return-value.patch
diff --git a/debian/patches/pve/0035-fix-possible-unitialised-return-value.patch b/debian/patches/pve/0035-fix-possible-unitialised-return-value.patch
new file mode 100644 (file)
index 0000000..8c0a2aa
--- /dev/null
@@ -0,0 +1,25 @@
+From bac1501cc8927f21ba79f986cefe5d741825f33d Mon Sep 17 00:00:00 2001
+From: Thomas Lamprecht <t.lamprecht@proxmox.com>
+Date: Wed, 6 Apr 2016 16:45:15 +0200
+Subject: [PATCH 35/41] fix possible unitialised return value
+
+---
+ migration/savevm.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/migration/savevm.c b/migration/savevm.c
+index b1bdfb6..cebba77 100644
+--- a/migration/savevm.c
++++ b/migration/savevm.c
+@@ -1020,7 +1020,7 @@ int qemu_savevm_state_complete_precopy(QEMUFile *f, bool iterable_only)
+     QJSON *vmdesc;
+     int vmdesc_len;
+     SaveStateEntry *se;
+-    int ret;
++    int ret = -1;
+     bool in_postcopy = migration_in_postcopy(migrate_get_current());
+     trace_savevm_state_complete_precopy();
+-- 
+2.1.4
+