提交 f153501e 编写于 作者: H Hu Tao 提交者: Eric Blake

fix a bug in remoteSerializeTypedParameters

This is a fatal typo believed to be very likely to happen when using
both i and j at the same time for indexing.
上级 a38710bd
......@@ -710,7 +710,7 @@ remoteSerializeTypedParameters(virTypedParameterPtr params,
goto cleanup;
}
val[j].value.type = params[i].type;
switch (params[j].type) {
switch (params[i].type) {
case VIR_TYPED_PARAM_INT:
val[j].value.remote_typed_param_value_u.i = params[i].value.i;
break;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册