1
0
Fork 0

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
1 changed files with 1 additions and 0 deletions

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;