1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00

Initialize ProfWin.urls_ac to NULL to fix OpenBSD build

This commit is contained in:
William Wennerström 2020-06-03 08:31:23 +02:00
parent 3d7a3134af
commit 05dde4bab4
No known key found for this signature in database
GPG Key ID: E1382990BEDD319B

View File

@ -251,6 +251,7 @@ test_cmd_otr_theirfp_from_wintype(win_type_t wintype)
ProfWin window; ProfWin window;
window.type = wintype; window.type = wintype;
window.layout = NULL; window.layout = NULL;
window.urls_ac = NULL;
will_return(connection_get_status, JABBER_CONNECTED); 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; ProfWin window;
window.type = WIN_CHAT; window.type = WIN_CHAT;
window.layout = NULL; window.layout = NULL;
window.urls_ac = NULL;
ProfChatWin chatwin; ProfChatWin chatwin;
chatwin.window = window; chatwin.window = window;
chatwin.memcheck = PROFCHATWIN_MEMCHECK; chatwin.memcheck = PROFCHATWIN_MEMCHECK;
@ -310,6 +312,7 @@ void cmd_otr_theirfp_shows_fingerprint(void **state)
ProfWin window; ProfWin window;
window.type = WIN_CHAT; window.type = WIN_CHAT;
window.layout = NULL; window.layout = NULL;
window.urls_ac = NULL;
ProfChatWin chatwin; ProfChatWin chatwin;
chatwin.window = window; chatwin.window = window;
chatwin.barejid = recipient; chatwin.barejid = recipient;
@ -337,6 +340,7 @@ test_cmd_otr_start_from_wintype(win_type_t wintype)
ProfWin window; ProfWin window;
window.type = wintype; window.type = wintype;
window.layout = NULL; window.layout = NULL;
window.urls_ac = NULL;
will_return(connection_get_status, JABBER_CONNECTED); will_return(connection_get_status, JABBER_CONNECTED);
@ -371,6 +375,7 @@ void cmd_otr_start_shows_message_when_already_started(void **state)
ProfWin window; ProfWin window;
window.type = WIN_CHAT; window.type = WIN_CHAT;
window.layout = NULL; window.layout = NULL;
window.urls_ac = NULL;
ProfChatWin chatwin; ProfChatWin chatwin;
chatwin.window = window; chatwin.window = window;
chatwin.barejid = recipient; chatwin.barejid = recipient;
@ -395,6 +400,7 @@ void cmd_otr_start_shows_message_when_no_key(void **state)
ProfWin window; ProfWin window;
window.type = WIN_CHAT; window.type = WIN_CHAT;
window.layout = NULL; window.layout = NULL;
window.urls_ac = NULL;
ProfChatWin chatwin; ProfChatWin chatwin;
chatwin.window = window; chatwin.window = window;
chatwin.barejid = recipient; chatwin.barejid = recipient;