about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2020-05-22 14:41:42 +0200
committerMichael Vetter <jubalh@iodoru.org>2020-05-22 14:41:42 +0200
commit70db2a4b633ba043b40ffd0e51695167e31c6f38 (patch)
treead1d5481032c9002a462393965c88ce324ab0bf3
parent89fd9394aae32df9589dee209f31c1868dfb977d (diff)
downloadprofani-tty-70db2a4b633ba043b40ffd0e51695167e31c6f38.tar.gz
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
```
-rw-r--r--tests/unittests/test_cmd_otr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/unittests/test_cmd_otr.c b/tests/unittests/test_cmd_otr.c
index ca55f5b8..f18ca814 100644
--- a/tests/unittests/test_cmd_otr.c
+++ b/tests/unittests/test_cmd_otr.c
@@ -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;