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:
@@ -411,6 +411,7 @@ cmd_otr_start_sends_otr_query_message_to_current_recipeint(void **state)
|
|||||||
|
|
||||||
ProfWin window;
|
ProfWin window;
|
||||||
window.type = WIN_CHAT;
|
window.type = WIN_CHAT;
|
||||||
|
window.layout = NULL;
|
||||||
ProfChatWin chatwin;
|
ProfChatWin chatwin;
|
||||||
chatwin.window = window;
|
chatwin.window = window;
|
||||||
chatwin.barejid = recipient;
|
chatwin.barejid = recipient;
|
||||||
|
|||||||
Reference in New Issue
Block a user