diff options
author | James Booth <boothj5@gmail.com> | 2015-11-02 00:49:05 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2015-11-02 00:49:05 +0000 |
commit | c9db9257ae2130870157ca63851ae2080c41ffe5 (patch) | |
tree | 03ba9e6a240f5192f91e1005f17efb73c12fbf83 /src/ui | |
parent | 7bedb6c2949bf1a88c7637ff27a5781e255790a5 (diff) | |
download | profani-tty-c9db9257ae2130870157ca63851ae2080c41ffe5.tar.gz |
Added assert to mucwin_show_role_list
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/mucwin.c | 4 |
1 files changed, 3 insertions, 1 deletions
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) { |