[libvirt] [PATCH v2 2/2] virTypedParamsDeserialize: set nparams to 0 in case of an error
Marc Hartmayer
mhartmay at linux.ibm.com
Tue Jul 17 12:02:33 UTC 2018
From: Marc Hartmayer <mhartmay at linux.vnet.ibm.com>
Signed-off-by: Marc Hartmayer <mhartmay at linux.ibm.com>
---
src/util/virtypedparam.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/util/virtypedparam.c b/src/util/virtypedparam.c
index c5fc68418c35..ef84642ee989 100644
--- a/src/util/virtypedparam.c
+++ b/src/util/virtypedparam.c
@@ -1467,6 +1467,7 @@ virTypedParamsDeserialize(virTypedParameterRemotePtr remote_params,
} else {
virTypedParamsFree(*params, i);
*params = NULL;
+ *nparams = 0;
}
}
return rv;
--
2.13.4
More information about the libvir-list
mailing list