]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libsmartcols: drop spourious newline in between streamed JSON objects
authorThomas Weißschuh <thomas@t-8ch.de>
Tue, 12 Dec 2023 17:41:33 +0000 (18:41 +0100)
committerThomas Weißschuh <thomas@t-8ch.de>
Wed, 13 Dec 2023 18:29:33 +0000 (19:29 +0100)
scols_table_print_range() already appends a newline correctly.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
(cherry picked from commit b2b0bf88d35513a746c144f35826eb47692386dc)

misc-utils/findmnt.c

index 733bbc13d23ace02d3457256186bc5ec51370140..fff9bde07dd95378dea639d82a7d108db47d8a98 100644 (file)
@@ -1272,8 +1272,6 @@ static int poll_table(struct libmnt_table *tb, const char *tabfile,
 
                if (count) {
                        rc = scols_table_print_range(table, NULL, NULL);
-                       if (rc == 0)
-                               fputc('\n', scols_table_get_stream(table));
                        fflush(stdout);
                        if (rc)
                                goto done;