提交 5f02e284 编写于 作者: M Marc Hartmayer 提交者: John Ferlan

virTypedParamsDeserialize: set nparams to 0 in case of an error

Signed-off-by: NMarc Hartmayer <mhartmay@linux.ibm.com>
Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
上级 97be85dc
......@@ -1467,6 +1467,7 @@ virTypedParamsDeserialize(virTypedParameterRemotePtr remote_params,
} else {
virTypedParamsFree(*params, i);
*params = NULL;
*nparams = 0;
}
}
return rv;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册