diff options
Diffstat (limited to 'src/core/commands.c')
-rw-r--r-- | src/core/commands.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/commands.c b/src/core/commands.c index 08f1c1b9..0cbb70b0 100644 --- a/src/core/commands.c +++ b/src/core/commands.c @@ -283,6 +283,8 @@ void command_runsub(const char *cmd, const char *data, g_return_if_fail(data != NULL); + while (*data == ' ') data++; + if (*data == '\0') { /* no subcommand given - list the subcommands */ signal_emit("list subcommands", 2, cmd); |