aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2020-02-14 14:40:20 +0100
committerMichael Vetter <jubalh@iodoru.org>2020-02-14 14:40:20 +0100
commitca3afa7e05ae87158b6c1bfca1758763d4b0d8a2 (patch)
treee0eb6bef642c00d5072973c0171b6fc6e5a46a3e /tests
parent421c67e28404c4f4e720de4dceaa1825e75ef865 (diff)
downloadprofani-tty-ca3afa7e05ae87158b6c1bfca1758763d4b0d8a2.tar.gz
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)
Diffstat (limited to 'tests')
-rw-r--r--tests/unittests/test_cmd_otr.c1
1 files changed, 1 insertions, 0 deletions
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;