mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-18 08:06:21 +00: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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user