1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Added assert check to mucconfwin_form_help

This commit is contained in:
James Booth 2015-11-02 22:06:12 +00:00
parent a3e9178ea2
commit 2a65aa0030

View File

@ -183,6 +183,8 @@ mucconfwin_field_help(ProfMucConfWin *confwin, char *tag)
void void
mucconfwin_form_help(ProfMucConfWin *confwin) mucconfwin_form_help(ProfMucConfWin *confwin)
{ {
assert(confwin != NULL);
if (confwin->form->instructions) { if (confwin->form->instructions) {
ProfWin *window = (ProfWin*) confwin; ProfWin *window = (ProfWin*) confwin;
win_print(window, '-', 0, NULL, 0, 0, "", "Supplied instructions:"); win_print(window, '-', 0, NULL, 0, 0, "", "Supplied instructions:");