From 05dde4bab4a631584bd0b1b427d696c7740d7340 Mon Sep 17 00:00:00 2001 From: William Wennerström Date: Wed, 3 Jun 2020 08:31:23 +0200 Subject: Initialize ProfWin.urls_ac to NULL to fix OpenBSD build --- tests/unittests/test_cmd_otr.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests') 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; -- cgit 1.4.1-2-gfad0