Commit f247a3f5 by Sven Strickroth

git2: Fix crash when called w/o parameters

Signed-off-by: Sven Strickroth <email@cs-ware.de>
parent b49b8dbe
......@@ -100,6 +100,11 @@ int main(int argc, char **argv)
goto done;
}
if (!command) {
ret = cmd_help(argc, argv);
goto done;
}
if ((cmd = cli_cmd_spec_byname(command)) == NULL) {
ret = cli_error("'%s' is not a %s command. See '%s help'.",
command, PROGRAM_NAME, PROGRAM_NAME);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment