mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user