]> git.proxmox.com Git - pve-qemu-kvm.git/blob - debian/patches/pve/0035-fix-possible-unitialised-return-value.patch
fb2dc2dd20e27e1278ed0a7d1432824fa864a87d
[pve-qemu-kvm.git] / debian / patches / pve / 0035-fix-possible-unitialised-return-value.patch
1 From 927da5e2426aac5bef37c97604740deddedbda41 Mon Sep 17 00:00:00 2001
2 From: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 Date: Wed, 6 Apr 2016 16:45:15 +0200
4 Subject: [PATCH 35/47] fix possible unitialised return value
5
6 ---
7 migration/savevm.c | 2 +-
8 1 file changed, 1 insertion(+), 1 deletion(-)
9
10 diff --git a/migration/savevm.c b/migration/savevm.c
11 index b1bdfb6..cebba77 100644
12 --- a/migration/savevm.c
13 +++ b/migration/savevm.c
14 @@ -1020,7 +1020,7 @@ int qemu_savevm_state_complete_precopy(QEMUFile *f, bool iterable_only)
15 QJSON *vmdesc;
16 int vmdesc_len;
17 SaveStateEntry *se;
18 - int ret;
19 + int ret = -1;
20 bool in_postcopy = migration_in_postcopy(migrate_get_current());
21
22 trace_savevm_state_complete_precopy();
23 --
24 2.1.4
25