]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_driver: Resolve Coverity COPY_PASTE_ERROR
authorJohn Ferlan <jferlan@redhat.com>
Wed, 3 Sep 2014 19:10:56 +0000 (15:10 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Thu, 11 Sep 2014 11:33:19 +0000 (07:33 -0400)
commitf72f064269ea599bc0e67787e2c69f98e524fa56
tree16a89fe91659011c83aac10b236ef75f02946b0e
parentb635b7a1af0e64754016d758376f382470bc11e7
qemu_driver: Resolve Coverity COPY_PASTE_ERROR

In qemuDomainSetBlkioParameters(), Coverity points out that the calls
to qemuDomainParseBlkioDeviceStr() are slightly different and points
out there may be a cut-n-paste error.

In the first call (AFFECT_LIVE), the second parameter is "param->field";
however, for the second call (AFFECT_CONFIG), the second parameter is
"params->field".  It seems the "param->field" is correct especially since
each path as a setting of "param" to "&params[i]".  Furthermore, there
were a few more instances of using "params[i]" instead of "param->"
which I cleaned up.

Signed-off-by: John Ferlan <jferlan@redhat.com>
src/qemu/qemu_driver.c