diff options
| author | Michael Vetter <jubalh@iodoru.org> | 2020-02-14 14:40:20 +0100 |
|---|---|---|
| committer | Michael Vetter <jubalh@iodoru.org> | 2020-02-14 14:40:20 +0100 |
| commit | ca3afa7e05ae87158b6c1bfca1758763d4b0d8a2 (patch) | |
| tree | e0eb6bef642c00d5072973c0171b6fc6e5a46a3e /tests | |
| parent | 421c67e28404c4f4e720de4dceaa1825e75ef865 (diff) | |
| download | profani-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.c | 1 |
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; |