diff options
author | William Wennerström <william@wstrm.dev> | 2020-06-03 08:31:23 +0200 |
---|---|---|
committer | William Wennerström <william@wstrm.dev> | 2020-06-03 08:31:23 +0200 |
commit | 05dde4bab4a631584bd0b1b427d696c7740d7340 (patch) | |
tree | ffdf2573b82461319cccd352f5b1d0a00df29e6a | |
parent | 3d7a3134afc36f8494fca1b3d77a1bc7e6789f63 (diff) | |
download | profani-tty-05dde4bab4a631584bd0b1b427d696c7740d7340.tar.gz |
Initialize ProfWin.urls_ac to NULL to fix OpenBSD build
-rw-r--r-- | tests/unittests/test_cmd_otr.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/unittests/test_cmd_otr.c b/tests/unittests/test_cmd_otr.c index f18ca814..dd2d6ed7 100644 --- a/tests/unittests/test_cmd_otr.c +++ b/tests/unittests/test_cmd_otr.c @@ -251,6 +251,7 @@ test_cmd_otr_theirfp_from_wintype(win_type_t wintype) ProfWin window; window.type = wintype; window.layout = NULL; + window.urls_ac = NULL; will_return(connection_get_status, JABBER_CONNECTED); @@ -283,6 +284,7 @@ void cmd_otr_theirfp_shows_message_when_non_otr_chat_window(void **state) ProfWin window; window.type = WIN_CHAT; window.layout = NULL; + window.urls_ac = NULL; ProfChatWin chatwin; chatwin.window = window; chatwin.memcheck = PROFCHATWIN_MEMCHECK; @@ -310,6 +312,7 @@ void cmd_otr_theirfp_shows_fingerprint(void **state) ProfWin window; window.type = WIN_CHAT; window.layout = NULL; + window.urls_ac = NULL; ProfChatWin chatwin; chatwin.window = window; chatwin.barejid = recipient; @@ -337,6 +340,7 @@ test_cmd_otr_start_from_wintype(win_type_t wintype) ProfWin window; window.type = wintype; window.layout = NULL; + window.urls_ac = NULL; will_return(connection_get_status, JABBER_CONNECTED); @@ -371,6 +375,7 @@ void cmd_otr_start_shows_message_when_already_started(void **state) ProfWin window; window.type = WIN_CHAT; window.layout = NULL; + window.urls_ac = NULL; ProfChatWin chatwin; chatwin.window = window; chatwin.barejid = recipient; @@ -395,6 +400,7 @@ void cmd_otr_start_shows_message_when_no_key(void **state) ProfWin window; window.type = WIN_CHAT; window.layout = NULL; + window.urls_ac = NULL; ProfChatWin chatwin; chatwin.window = window; chatwin.barejid = recipient; |