]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: string: Add helper to check whether string is empty
authorPeter Krempa <pkrempa@redhat.com>
Wed, 22 Oct 2014 08:26:42 +0000 (10:26 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 22 Oct 2014 15:51:18 +0000 (17:51 +0200)
commit0eeafeedebe4469fce33d7942551957853856619
tree675cab0a198d385852271183e461736cdc6d76f1
parent5de9e082c3a95701ff0e25b785e22807aa891017
util: string: Add helper to check whether string is empty

The helper checks whether a string contains only whitespace or is NULL.
This will be helpful to skip cases where a user string is optional, but
may be provided empty with the same meaning.
src/libvirt_private.syms
src/util/virstring.c
src/util/virstring.h