From ca3afa7e05ae87158b6c1bfca1758763d4b0d8a2 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Fri, 14 Feb 2020 14:40:20 +0100 Subject: [PATCH] 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) --- tests/unittests/test_cmd_otr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/unittests/test_cmd_otr.c b/tests/unittests/test_cmd_otr.c index ec879ab4..8ae96bae 100644 --- a/tests/unittests/test_cmd_otr.c +++ b/tests/unittests/test_cmd_otr.c @@ -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;