]> xenbits.xensource.com Git - libvirt.git/commit
vmware: fix parse of disk source
authorEric Blake <eblake@redhat.com>
Tue, 18 Mar 2014 21:41:28 +0000 (15:41 -0600)
committerEric Blake <eblake@redhat.com>
Mon, 24 Mar 2014 17:55:05 +0000 (11:55 -0600)
commite7b0e71d92bea36064a927f9c9a3af07fbd26f17
tree13b49de66cc4d0c9a236bde3f24c1fae6e0e0f14
parent0d93526fddb54376e2bf12928c58c1b9b1c466d7
vmware: fix parse of disk source

While writing disk source refactoring, I discovered that conversion
from XML to vmware modified the disk source in place; if the same
code is reached twice, the second call behaves differently because
the first call didn't clean up its mess.

* src/vmware/vmware_conf.c (vmwareParsePath): Avoid munging input
string.
* src/vmware/vmware_conf.h (vmwareParsePath): Make static.

Signed-off-by: Eric Blake <eblake@redhat.com>
src/vmware/vmware_conf.c
src/vmware/vmware_conf.h