Skip to content
Snippets Groups Projects
Commit cff32c9b authored by Russell Bryant's avatar Russell Bryant
Browse files

print an error message if invalid arguments are specified (issue #5872)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7230 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 6a2bb9c3
No related branches found
No related tags found
No related merge requests found
......@@ -252,6 +252,8 @@ static int cut_internal(struct ast_channel *chan, char *data, char *buffer, size
}
}
}
} else {
return ERROR_NOARG;
}
return 0;
}
......@@ -385,7 +387,7 @@ static char *acf_cut_exec(struct ast_channel *chan, char *cmd, char *data, char
switch (cut_internal(chan, data, buf, len)) {
case ERROR_NOARG:
ast_log(LOG_ERROR, "Cut() requires an argument\n");
ast_log(LOG_ERROR, "CUT() requires an argument\n");
break;
case ERROR_NOMEM:
ast_log(LOG_ERROR, "Out of memory\n");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment