From c9db9257ae2130870157ca63851ae2080c41ffe5 Mon Sep 17 00:00:00 2001 From: James Booth Date: Mon, 2 Nov 2015 00:49:05 +0000 Subject: [PATCH] Added assert to mucwin_show_role_list --- src/ui/mucwin.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ui/mucwin.c b/src/ui/mucwin.c index d3d29ee0..ec39bbed 100644 --- a/src/ui/mucwin.c +++ b/src/ui/mucwin.c @@ -661,7 +661,9 @@ mucwin_handle_role_list(ProfMucWin *mucwin, const char *const role, GSList *nick void mucwin_show_role_list(ProfMucWin *mucwin, muc_role_t role) { - ProfWin *window = (ProfWin*) mucwin; + assert(mucwin != NULL); + + ProfWin *window = (ProfWin*)mucwin; GSList *occupants = muc_occupants_by_role(mucwin->roomjid, role); if (!occupants) {