From: Thomas Weißschuh Date: Tue, 12 Dec 2023 17:41:33 +0000 (+0100) Subject: libsmartcols: drop spourious newline in between streamed JSON objects X-Git-Tag: v2.39.4~13^2~3 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=66b7e11a35987962a24c8f281b8730fb3260b2b5;p=thirdparty%2Futil-linux.git libsmartcols: drop spourious newline in between streamed JSON objects scols_table_print_range() already appends a newline correctly. Signed-off-by: Thomas Weißschuh (cherry picked from commit b2b0bf88d35513a746c144f35826eb47692386dc) --- diff --git a/misc-utils/findmnt.c b/misc-utils/findmnt.c index 733bbc13d2..fff9bde07d 100644 --- a/misc-utils/findmnt.c +++ b/misc-utils/findmnt.c @@ -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;