summaryrefslogtreecommitdiff
path: root/src/core/cs_help.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/cs_help.c')
-rw-r--r--src/core/cs_help.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/cs_help.c b/src/core/cs_help.c
index b27c6a7c2..4d71be428 100644
--- a/src/core/cs_help.c
+++ b/src/core/cs_help.c
@@ -25,8 +25,7 @@ class CommandCSHelp : public Command
CommandReturn Execute(User *u, std::vector<std::string> &params)
{
- const char *cmd = params[0].c_str();
- const char *subcmd = params[1].c_str();
+ const char *cmd = params.size() > 0 ? params[0].c_str() : NULL;
if (!cmd)
{