]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libsmartcols: print empty arrays in better way
authorKarel Zak <kzak@redhat.com>
Wed, 3 Apr 2024 12:00:45 +0000 (14:00 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 3 Apr 2024 12:00:45 +0000 (14:00 +0200)
commit5a61a4abf681cb9e595ea10021df0ff7bc991045
treefa6d91944e3e3917b8db995db22cc5babe7a85b0
parentb649ff92d2d91864e85a5bba4c89d52236817d9e
libsmartcols: print empty arrays in better way

Use "[]" rather than "[null]" to print empty array.

Old version:
         "mountpoints": [
             null
         ],
New version:
"mountpoints": [],

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