]> git.ipfire.org Git - thirdparty/libvirt.git/commit
vsh-table: allow empty columns
authorJán Tomko <jtomko@redhat.com>
Tue, 12 Feb 2019 09:02:38 +0000 (10:02 +0100)
committerJán Tomko <jtomko@redhat.com>
Tue, 12 Feb 2019 09:14:53 +0000 (10:14 +0100)
commitb419ea6a908a3effd6647d556aa4fa933fa342bf
tree3b3afb7af18ce7f7e1533af77fdeeb3ab92f5f90
parent865b201479d5094d3bc7c342317f095ec763490f
vsh-table: allow empty columns

Trivially implement this by deleting the bogus check in
vshTableSafeEncode.

Now it returns an empty string for an empty string instead
of returning NULL without setting an error.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
tests/vshtabletest.c
tools/vsh-table.c