From: Marc Hartmayer Date: Tue, 17 Jul 2018 12:02:33 +0000 (+0200) Subject: virTypedParamsDeserialize: set nparams to 0 in case of an error X-Git-Tag: v4.6.0-rc1~88 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f02e284809983f5fd2ed59d6961fe52df0c018d;p=thirdparty%2Flibvirt.git virTypedParamsDeserialize: set nparams to 0 in case of an error Signed-off-by: Marc Hartmayer Reviewed-by: John Ferlan --- diff --git a/src/util/virtypedparam.c b/src/util/virtypedparam.c index c50d29eb55..1a4393b562 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;