mirror of
https://github.com/profanity-im/profanity.git
synced 2024-10-27 20:30:13 -04: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:
parent
421c67e284
commit
ca3afa7e05
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user