From b5133afbe55f63561cc4eba75a7203f33a45d34e Mon Sep 17 00:00:00 2001 From: Frank Lichtenheld Date: Tue, 21 Jan 2025 18:36:47 +0100 Subject: [PATCH] tray.c: Avoid -Waddress with MinGW MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit tray.c:783:36: error: the comparison will always evaluate as ‘true’ for the pointer operand [...] must not be NULL [-Werror=address] True. Signed-off-by: Frank Lichtenheld --- tray.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tray.c b/tray.c index 4254312..5376b51 100644 --- a/tray.c +++ b/tray.c @@ -780,7 +780,7 @@ SetMenuStatus(connection_t *c, conn_state_t state) config_group_t *parent = &o.groups[0]; int pos = c->pos; - if (USE_NESTED_CONFIG_MENU && CONFIG_GROUP(c)) + if (USE_NESTED_CONFIG_MENU) { parent = CONFIG_GROUP(c); }