1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00

Merge pull request #1573 from xenrox/fix-uninitialized

Initialize jid
This commit is contained in:
Michael Vetter 2021-07-02 08:38:26 +02:00 committed by GitHub
commit 7de261b1c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3050,14 +3050,15 @@ cmd_blocked(ProfWin* window, const char* const command, gchar** args)
}
if (strncmp(args[0], "report-", 7) == 0) {
char *jid;
char *msg = NULL;
char* jid = NULL;
char* msg = NULL;
guint argn = g_strv_length(args);
if (argn >= 2) {
jid = args[1];
} else {
cons_bad_cmd_usage(command);
return TRUE;
}
if (argn >= 3) {