Merged revisions 159897 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r159897 | mvanbaak | 2008-12-01 15:05:41 +0100 (Mon, 01 Dec 2008) | 4 lines make manager compile on OpenBSD. The last (10th) argument to ast_channel_alloc here should be a pointer and NULL is not really a pointer. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@159898 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
parent
2606a9f8a3
commit
37fd23ecc0
|
@ -1814,7 +1814,7 @@ static int action_getvar(struct mansession *s, const struct message *m)
|
|||
|
||||
if (varname[strlen(varname) - 1] == ')') {
|
||||
if (!c) {
|
||||
c = ast_channel_alloc(0, 0, "", "", "", "", "", 0, "Bogus/%p", NULL);
|
||||
c = ast_channel_alloc(0, 0, "", "", "", "", "", 0, "Bogus/%p", SENTINEL);
|
||||
if (c) {
|
||||
ast_func_read(c, (char *) varname, workspace, sizeof(workspace));
|
||||
ast_channel_free(c);
|
||||
|
|
Reference in New Issue