mirror of
https://github.com/profanity-im/profanity.git
synced 2025-02-02 15:08:15 -05:00
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.
This commit is contained in:
parent
93fa8467ef
commit
ef3810638f
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user