1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-09-22 19:45:54 -04:00

ox: guard printing of fingerprint

This commit is contained in:
Michael Vetter 2021-03-25 16:25:18 +01:00
parent fb81b80499
commit 10df93ee3e

View File

@ -297,7 +297,9 @@ _ox_metadata_result(xmpp_conn_t* const conn, xmpp_stanza_t* const stanza, void*
while (pubkeymetadata) {
const char* fingerprint = xmpp_stanza_get_attribute(pubkeymetadata, STANZA_ATTR_V4_FINGERPRINT);
cons_show(fingerprint);
if (fingerprint) {
cons_show(fingerprint);
}
pubkeymetadata = xmpp_stanza_get_next(pubkeymetadata);
}