mirror of https://gitee.com/openkylin/libvirt.git
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.
This commit is contained in:
parent
a38710bd65
commit
f153501e68
|
@ -710,7 +710,7 @@ remoteSerializeTypedParameters(virTypedParameterPtr params,
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
val[j].value.type = params[i].type;
|
val[j].value.type = params[i].type;
|
||||||
switch (params[j].type) {
|
switch (params[i].type) {
|
||||||
case VIR_TYPED_PARAM_INT:
|
case VIR_TYPED_PARAM_INT:
|
||||||
val[j].value.remote_typed_param_value_u.i = params[i].value.i;
|
val[j].value.remote_typed_param_value_u.i = params[i].value.i;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue