Merged revisions 55555 via svnmerge from

https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r55555 | qwell | 2007-02-20 10:53:45 -0600 (Tue, 20 Feb 2007) | 4 lines

No need to cast nor free with strdupa (thanks file)

55555!

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@55556 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Jason Parker
2007-02-20 16:56:58 +00:00
parent 006817c0e7
commit ae47fc4541
3 changed files with 6 additions and 17 deletions

View File

@@ -344,7 +344,7 @@ static int aji_status_exec(struct ast_channel *chan, void *data)
ast_log(LOG_ERROR, "This application requires arguments.\n");
return 0;
}
s = ast_strdupa((char *) data);
s = ast_strdupa(data);
if (s) {
sender = strsep(&s, "|");
if (sender && (sender[0] != '\0')) {
@@ -404,7 +404,7 @@ static int aji_send_exec(struct ast_channel *chan, void *data)
ast_log(LOG_ERROR, "This application requires arguments.\n");
return 0;
}
s = ast_strdupa((char *) data);
s = ast_strdupa(data);
if (s) {
sender = strsep(&s, "|");
if (sender && (sender[0] != '\0')) {