]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libsmartcols: only recognize closed object as final element
authorThomas Weißschuh <thomas@t-8ch.de>
Tue, 12 Dec 2023 17:42:44 +0000 (18:42 +0100)
committerThomas Weißschuh <thomas@t-8ch.de>
Wed, 13 Dec 2023 18:29:33 +0000 (19:29 +0100)
commit261c9309485818a9c0c04c18da69413149d8f8a8
tree853ca42a99745bd85e9147a9662328ba40feedd1
parentb116d3726a7026b5f64209d4588be48500e64711
libsmartcols: only recognize closed object as final element

When streaming JSON normal values also have indent == 1.
For those however it is incorrect to close the stream.

Fixes #2644
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
(cherry picked from commit 5130ce8ee5b71c249e0c8bb7a4975dc8a48c64fa)
lib/jsonwrt.c