mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-22 20:56:39 +00:00
And don't forget to return on the error condition
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@150301 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1501,6 +1501,7 @@ static int action_getvar(struct mansession *s, const struct message *m)
|
||||
char *copy = ast_strdupa(varname);
|
||||
if (!c) {
|
||||
astman_send_error(s, m, "No such channel");
|
||||
return 0;
|
||||
}
|
||||
ast_func_read(c, copy, workspace, sizeof(workspace));
|
||||
varval = workspace;
|
||||
|
Reference in New Issue
Block a user