]> 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>
Tue, 12 Dec 2023 17:43:17 +0000 (18:43 +0100)
scols_table_print_range() already appends a newline correctly.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
misc-utils/findmnt.c

index 40b80b36553104df487724734d49ebb7b17c0ac1..14ae2c5b4881ebd1987aa2c4c0f8cee5b133a09d 100644 (file)
@@ -1295,8 +1295,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;