hirc

IRC client
Log | Files | Refs

commit aca519f147fe93e9efe0ad4038ff04a023b3fa55
parent aaada9bd18de67fb46f1a6be67d208bee8d14e38
Author: hhvn <dev@hhvn.uk>
Date:   Wed, 27 Oct 2021 22:00:08 +0100

ui.c: fix segfault in ui_select

Diffstat:
Mui.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ui.c b/ui.c @@ -331,6 +331,6 @@ void ui_select(struct Server *server, struct Channel *channel) { selected.channel = channel; selected.server = server; - selected.history = channel ? channel->history : server->history ? server->history : main_buf; - selected.name = channel ? channel->name : server->name ? server->name : "hirc"; + selected.history = channel ? channel->history : server ? server->history : main_buf; + selected.name = channel ? channel->name : server ? server->name : "hirc"; }