mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Added assert check to mucconfwin_field_help
This commit is contained in:
parent
2a65aa0030
commit
9106029261
@ -102,6 +102,8 @@ mucconfwin_handle_configuration(const char *const roomjid, DataForm *form)
|
|||||||
void
|
void
|
||||||
mucconfwin_field_help(ProfMucConfWin *confwin, char *tag)
|
mucconfwin_field_help(ProfMucConfWin *confwin, char *tag)
|
||||||
{
|
{
|
||||||
|
assert(confwin != NULL);
|
||||||
|
|
||||||
ProfWin *window = (ProfWin*) confwin;
|
ProfWin *window = (ProfWin*) confwin;
|
||||||
FormField *field = form_get_field_by_tag(confwin->form, tag);
|
FormField *field = form_get_field_by_tag(confwin->form, tag);
|
||||||
if (field) {
|
if (field) {
|
||||||
|
Loading…
Reference in New Issue
Block a user