From df30d4ba52efd31f3d559912e8c5c26d5ecd685c Mon Sep 17 00:00:00 2001 From: James Booth Date: Wed, 27 Apr 2016 21:52:58 +0100 Subject: [PATCH] Check first entry in command sub_funcs --- src/command/command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/command/command.c b/src/command/command.c index 906f2708..5895ad9d 100644 --- a/src/command/command.c +++ b/src/command/command.c @@ -3288,7 +3288,7 @@ _cmd_execute(ProfWin *window, const char *const command, const char *const inp) ui_invalid_command_usage(cmd->cmd, cmd->setting_func); return TRUE; } - if (args[0] && cmd->sub_funcs) { + if (args[0] && cmd->sub_funcs[0][0]) { int i = 0; while (cmd->sub_funcs[i][0]) { if (g_strcmp0(args[0], (char*)cmd->sub_funcs[i][0]) == 0) {