diff options
author | Michael Vetter <jubalh@iodoru.org> | 2023-04-11 20:11:34 +0200 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2023-04-11 20:19:49 +0200 |
commit | ef3810638f9897f931c72bc0c0c9449cb2997859 (patch) | |
tree | 19deb6c49b5f7dcf1c617c26152dac60e0bbf874 /src/xmpp | |
parent | 93fa8467ef6b8f6bf164a447752ef6bdfa224a5e (diff) | |
download | profani-tty-ef3810638f9897f931c72bc0c0c9449cb2997859.tar.gz |
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.
Diffstat (limited to 'src/xmpp')
-rw-r--r-- | src/xmpp/iq.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |