From: Luyao Huang Date: Wed, 20 Jun 2018 09:05:02 +0000 (+0800) Subject: qemu: process: Fix the return value in qemuProcessSEVCreateFile X-Git-Tag: v4.5.0-rc1~83 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e039a83064d65ba0b4efa637691586873cb8dc2a;p=thirdparty%2Flibvirt.git qemu: process: Fix the return value in qemuProcessSEVCreateFile When commit 6718132d enforced usage of the cleanup label, it forgot to set the @ret variable to 0 on "success" exit path. Signed-off-by: Luyao Huang Reviewed-by: Erik Skultety --- diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c index 93fd6ba5cd..631254daf2 100644 --- a/src/qemu/qemu_process.c +++ b/src/qemu/qemu_process.c @@ -5842,6 +5842,7 @@ qemuProcessSEVCreateFile(const char *configDir, goto cleanup; } + ret = 0; cleanup: VIR_FREE(configFile); return ret;