From 0449a42e5c0ad740acdcf525012ae6357f739822 Mon Sep 17 00:00:00 2001 From: Steffen Jaeckel Date: Mon, 6 Nov 2023 19:17:15 +0100 Subject: [PATCH] Fix `/omemo fingerprint` crashing in a MUC Reported by a user in the profanity MUC. Fixup of e1d137f4e639be337576e01832f66ed596e905da resp. #1863 Signed-off-by: Steffen Jaeckel --- src/command/cmd_funcs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/command/cmd_funcs.c b/src/command/cmd_funcs.c index 36b02f5c..9e62fbf8 100644 --- a/src/command/cmd_funcs.c +++ b/src/command/cmd_funcs.c @@ -8887,7 +8887,7 @@ cmd_omemo_fingerprint(ProfWin* window, const char* const command, gchar** args) return TRUE; } - auto_jid Jid* jid; + auto_jid Jid* jid = NULL; if (!args[1]) { if (window->type == WIN_CONSOLE) { auto_char char* fingerprint = omemo_own_fingerprint(TRUE);