Ensure instances of auto types are initialized

Follow-up of #1913

Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
This commit is contained in:
Steffen Jaeckel
2023-11-06 20:56:48 +01:00
parent 716c068325
commit 4c26462827
13 changed files with 47 additions and 73 deletions

View File

@@ -495,12 +495,7 @@ void
omemo_set_device_list(const char* const from, GList* device_list)
{
log_debug("[OMEMO] Setting device list for %s", STR_MAYBE_NULL(from));
auto_jid Jid* jid;
if (from) {
jid = jid_create(from);
} else {
jid = jid_create(connection_get_fulljid());
}
auto_jid Jid* jid = jid_create(from ?: connection_get_fulljid());
g_hash_table_insert(omemo_ctx.device_list, strdup(jid->barejid), device_list);