Fix segfault in /blocked with no args
Fix https://github.com/profanity-im/profanity/issues/1575
This commit is contained in:
@@ -3049,7 +3049,7 @@ cmd_blocked(ProfWin* window, const char* const command, gchar** args)
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strncmp(args[0], "report-", 7) == 0) {
|
if (args[0] && strncmp(args[0], "report-", 7) == 0) {
|
||||||
char* jid = NULL;
|
char* jid = NULL;
|
||||||
char* msg = NULL;
|
char* msg = NULL;
|
||||||
guint argn = g_strv_length(args);
|
guint argn = g_strv_length(args);
|
||||||
|
|||||||
Reference in New Issue
Block a user