Skip to content

Commit

Permalink
tray.c: Avoid -Waddress with MinGW
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
flichtenheld authored and cron2 committed Feb 18, 2025
1 parent 39c31ae commit 91b0b1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tray.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 91b0b1e

Please sign in to comment.