fixed null argument in cron and exec commands
This commit is contained in:
parent
ca082595d9
commit
2547be508c
|
|
@ -34,7 +34,8 @@ const char *exec_errors[] = {
|
||||||
"param COMMAND not found",
|
"param COMMAND not found",
|
||||||
"object not exists",
|
"object not exists",
|
||||||
"command not exists",
|
"command not exists",
|
||||||
"handler not set"
|
"handler not set",
|
||||||
|
"param ARGUMENT not found",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -158,6 +159,8 @@ static int ExecCommandParse(char *cmd)
|
||||||
return 2; //ERROR_OBJECT_NOT_PARSED
|
return 2; //ERROR_OBJECT_NOT_PARSED
|
||||||
if (!com)
|
if (!com)
|
||||||
return 3; //ERROR_ACTION_NOT_PARSED
|
return 3; //ERROR_ACTION_NOT_PARSED
|
||||||
|
if (!arg)
|
||||||
|
return 7; //ERROR_ACTION_NOT_PARSED
|
||||||
|
|
||||||
for (int idx = 0; idx < CONFIG_WEBGUIAPP_MAX_OBJECTS_NUM; idx++)
|
for (int idx = 0; idx < CONFIG_WEBGUIAPP_MAX_OBJECTS_NUM; idx++)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user