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

test: Init window.layout to make compiler happy

Fix tests/unittests/test_cmd_otr.c:415: warning: 'window.layout' is used
uninitialized in this function on openbsd (thanks optmzr)
This commit is contained in:
Michael Vetter 2020-02-14 14:40:20 +01:00
parent 421c67e284
commit ca3afa7e05

View File

@ -411,6 +411,7 @@ cmd_otr_start_sends_otr_query_message_to_current_recipeint(void **state)
ProfWin window;
window.type = WIN_CHAT;
window.layout = NULL;
ProfChatWin chatwin;
chatwin.window = window;
chatwin.barejid = recipient;