From ef3810638f9897f931c72bc0c0c9449cb2997859 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Tue, 11 Apr 2023 20:11:34 +0200 Subject: iq: initialize os and os_txt Let's set this to NULL. Someone was using `picaur` and got an error about potential uninitialization. Even though the code is fine let's set this to NULL to make the compiler happy. The strange thing was that building manually on the same system worked. Related to 2e43b0ae62478bede34f6f52f73d22d671425f85. --- src/xmpp/iq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/xmpp') diff --git a/src/xmpp/iq.c b/src/xmpp/iq.c index 1faa5b7f..f09deead 100644 --- a/src/xmpp/iq.c +++ b/src/xmpp/iq.c @@ -1651,8 +1651,8 @@ _version_get_handler(xmpp_stanza_t* const stanza) xmpp_stanza_add_child(name, name_txt); xmpp_stanza_add_child(query, name); bool include_os = prefs_get_boolean(PREF_REVEAL_OS) && !is_custom_client; - xmpp_stanza_t* os; - xmpp_stanza_t* os_txt; + xmpp_stanza_t* os = NULL; + xmpp_stanza_t* os_txt = NULL; xmpp_stanza_t* version = xmpp_stanza_new(ctx); xmpp_stanza_set_name(version, "version"); xmpp_stanza_t* version_txt = xmpp_stanza_new(ctx); -- cgit 1.4.1-2-gfad0