diff options
author | Michael Vetter <jubalh@iodoru.org> | 2021-07-02 08:38:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-02 08:38:26 +0200 |
commit | 7de261b1c28ba0099ae49c0cc7254b4dae850807 (patch) | |
tree | 1c04607df3f847b9d2dde5e8b22bbdac1b6f6729 | |
parent | 516fd7d90965e46a3f5fee20b97e3f243d14a339 (diff) | |
parent | 2cbea9daad9a4c8dd3cae7b7f8724aae6168a821 (diff) | |
download | profani-tty-7de261b1c28ba0099ae49c0cc7254b4dae850807.tar.gz |
Merge pull request #1573 from xenrox/fix-uninitialized
Initialize jid
-rw-r--r-- | src/command/cmd_funcs.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/command/cmd_funcs.c b/src/command/cmd_funcs.c index e8b80534..88ab9712 100644 --- a/src/command/cmd_funcs.c +++ b/src/command/cmd_funcs.c @@ -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) { |