about summary refs log tree commit diff stats
path: root/src/command/command.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2016-04-27 21:52:58 +0100
committerJames Booth <boothj5@gmail.com>2016-04-27 21:52:58 +0100
commitdf30d4ba52efd31f3d559912e8c5c26d5ecd685c (patch)
tree3155a90597984fb94b8a80387324cb83fac1c257 /src/command/command.c
parent5687c3e419e88687a97b5bfa728ffe92bf8d4e98 (diff)
downloadprofani-tty-df30d4ba52efd31f3d559912e8c5c26d5ecd685c.tar.gz
Check first entry in command sub_funcs
Diffstat (limited to 'src/command/command.c')
-rw-r--r--src/command/command.c2
1 files changed, 1 insertions, 1 deletions
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) {