mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-22 14:16:22 +00:00
Check if string is NULL and print placeholder instead
OpenBSD's kernel warns about NULL printfs. Fix this with a standard check.
This commit is contained in:
@@ -553,7 +553,7 @@ omemo_prekeys(GList** prekeys, GList** ids, GList** lengths)
|
||||
void
|
||||
omemo_set_device_list(const char* const from, GList* device_list)
|
||||
{
|
||||
log_debug("[OMEMO] Setting device list for %s", from);
|
||||
log_debug("[OMEMO] Setting device list for %s", (from == NULL) ? "" : from);
|
||||
Jid* jid;
|
||||
if (from) {
|
||||
jid = jid_create(from);
|
||||
|
||||
Reference in New Issue
Block a user