]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virDomainDeviceLoadparmIsValid: Simplify value lenght check
authorPeter Krempa <pkrempa@redhat.com>
Thu, 25 Nov 2021 12:32:18 +0000 (13:32 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 1 Dec 2021 12:39:47 +0000 (13:39 +0100)
commitd23389d2b7dc5390e96b9aff8861bb31c6f406ae
tree6b87abb5a316946a998e48756e069ba7b614875d
parent8eb7471eb360f627e2b80bc75bd4552785b9625c
virDomainDeviceLoadparmIsValid: Simplify value lenght check

Use the new STRLIM macro and unify it with the empty string check.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/conf/domain_conf.c
tests/qemuxml2argvdata/machine-loadparm-s390-len-invalid.err