1
0
Fork 0

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
1 changed files with 1 additions and 0 deletions

View File

@ -418,6 +418,7 @@ cmd_otr_start_sends_otr_query_message_to_current_recipeint(void **state)
ProfWin window;
window.type = WIN_CHAT;
window.layout = NULL;
window.urls_ac = NULL;
ProfChatWin chatwin;
chatwin.window = window;
chatwin.barejid = recipient;