about summary refs log tree commit diff stats
path: root/src/xmpp/omemo.c
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2023-01-30 09:06:52 +0100
committerGitHub <noreply@github.com>2023-01-30 09:06:52 +0100
commit88911c031ec856d48965d489a439b6eb15385e20 (patch)
treeccc3a5088291c46bcf14177cb811ba38335ed5aa /src/xmpp/omemo.c
parent494512c25cabc2271b4132f19ad38fb8edee1afa (diff)
parente1072c86401b08f57230677e0990322ecd4ccdf7 (diff)
downloadprofani-tty-88911c031ec856d48965d489a439b6eb15385e20.tar.gz
Merge pull request #1786 from thexhr/devel
Don't pass NULL pointers to vprintf
Diffstat (limited to 'src/xmpp/omemo.c')
-rw-r--r--src/xmpp/omemo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xmpp/omemo.c b/src/xmpp/omemo.c
index c4d82e42..e1bdbc3e 100644
--- a/src/xmpp/omemo.c
+++ b/src/xmpp/omemo.c
@@ -191,11 +191,11 @@ omemo_start_device_session_handle_bundle(xmpp_stanza_t* const stanza, void* cons
     char* from = NULL;
 
     const char* from_attr = xmpp_stanza_get_attribute(stanza, STANZA_ATTR_FROM);
-    log_debug("[OMEMO] omemo_start_device_session_handle_bundle: %s", from_attr);
+    log_debug("[OMEMO] omemo_start_device_session_handle_bundle: %s", STR_MAYBE_NULL(from_attr));
 
     const char* type = xmpp_stanza_get_type(stanza);
     if (g_strcmp0(type, "error") == 0) {
-        log_error("[OMEMO] Error to get key for a device from : %s", from_attr);
+        log_error("[OMEMO] Error to get key for a device from : %s", STR_MAYBE_NULL(from_attr));
     }
 
     if (!from_attr) {