1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00

Added assert check to mucconfwin_field_help

This commit is contained in:
James Booth 2015-11-02 22:07:07 +00:00
parent 2a65aa0030
commit 9106029261

View File

@ -102,6 +102,8 @@ mucconfwin_handle_configuration(const char *const roomjid, DataForm *form)
void
mucconfwin_field_help(ProfMucConfWin *confwin, char *tag)
{
assert(confwin != NULL);
ProfWin *window = (ProfWin*) confwin;
FormField *field = form_get_field_by_tag(confwin->form, tag);
if (field) {