]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libsmartcols: fix bare array on JSON output
authorKarel Zak <kzak@redhat.com>
Mon, 7 Jun 2021 08:32:20 +0000 (10:32 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 7 Jun 2021 08:32:20 +0000 (10:32 +0200)
commit0d281926a32c6ed6a37459888290a095dc79678f
tree53df2a2ba74fae3310885d83767606237c3f7bf6
parent1a30b2bd5e02d71284bd3d06e17fb855a1e2d35e
libsmartcols: fix bare array on JSON output

The bare array ({[...]}) for top level list of entries is invalid. It
seems better to print empty string than nothing. This is workaround
for broken utils, better is to define a table name.

Addresses: https://github.com/karelzak/util-linux/issues/1339
Signed-off-by: Karel Zak <kzak@redhat.com>
libsmartcols/src/print-api.c