From c63783ee894b3b6b360ba5179bed4f6962bf82fc Mon Sep 17 00:00:00 2001 From: Neehar Vijay Date: Thu, 3 Nov 2022 01:52:57 +0530 Subject: [PATCH] client: fix extra newlines in station show This change removes duplicate calls to display_table_footer(), in station show. Before this change, the bug caused an extra newline to be output every time the table updated. This only occurred when the network was disconnected. $ iwctl [iwd]# station wlan0 show --- client/station.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/client/station.c b/client/station.c index b070807b..1d958ef2 100644 --- a/client/station.c +++ b/client/station.c @@ -217,15 +217,9 @@ static void display_station(const char *device_name, 47, network_get_name(station->connected_network)); display_addresses(device_name); - - /* - * If connected the diagnostic interface is presumably up so - * don't add the table footer just yet. - */ - return; } - display_table_footer(); + /* The table footer is handled by cmd_show. */ } static void display_station_inline(const char *margin, const void *data)