]> xenbits.xensource.com Git - libvirt.git/commit
virDomainDiskAddISCSIPoolSourceHost: Sanitize handling of string list
authorPeter Krempa <pkrempa@redhat.com>
Wed, 5 Feb 2020 11:24:28 +0000 (12:24 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 10 Feb 2020 16:26:26 +0000 (17:26 +0100)
commitc5b1c14379994369f5cb92bbb3da36d7d19150c2
treeff5a8165139d4949b4093c06e9c8e049b5b49872
parent4e3e69fed45ac58bf19ebbe910213cb552d51f01
virDomainDiskAddISCSIPoolSourceHost: Sanitize handling of string list

Use virStringSplitCount instead of virStringSplit so that we can drop
the call to virStringListLength and use VIR_AUTOSTRINGLIST to declare
it and allow removal of the cleanup section.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/conf/domain_conf.c