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:
Hu Tao 2011-11-16 16:38:11 +08:00 committed by Eric Blake
parent a38710bd65
commit f153501e68
1 changed files with 1 additions and 1 deletions

View File

@ -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;