1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-10-27 20:30:13 -04:00

Fix build on sr.ht

Hopefully fixing:
```
cc1: warnings being treated as errors
tests/unittests/test_cmd_otr.c: In function
'cmd_otr_start_sends_otr_query_message_to_current_recipeint':
tests/unittests/test_cmd_otr.c:422: warning: 'window.urls_ac' is used
uninitialized in this function
gmake[2]: *** [Makefile:1913: tests/unittests/test_cmd_otr.o] Error 1
gmake[2]: Leaving directory '/home/build/profanity'
gmake[1]: *** [Makefile:2442: check-am] Error 2
gmake[1]: Leaving directory '/home/build/profanity'
gmake: *** [Makefile:2445: check] Error 2
```
This commit is contained in:
Michael Vetter 2020-05-22 14:41:42 +02:00
parent 89fd9394aa
commit 70db2a4b63

View File

@ -418,6 +418,7 @@ cmd_otr_start_sends_otr_query_message_to_current_recipeint(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;