convert some channels to use the memory allocation wrappers.

(This is being added to the janitor projects list.)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7954 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Russell Bryant
2006-01-11 01:20:29 +00:00
parent 79aa72e2e7
commit 466a062b09
7 changed files with 239 additions and 347 deletions

View File

@@ -865,10 +865,10 @@ static char *autoanswer_complete(char *line, char *word, int pos, int state)
switch(state) {
case 0:
if (!ast_strlen_zero(word) && !strncasecmp(word, "on", MIN(strlen(word), 2)))
return strdup("on");
return ast_strdup("on");
case 1:
if (!ast_strlen_zero(word) && !strncasecmp(word, "off", MIN(strlen(word), 3)))
return strdup("off");
return ast_strdup("off");
default:
return NULL;
}