Little revert on some CLI stuff

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@939 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer 2003-04-30 19:04:00 +00:00
parent 07dfb3d5f2
commit 0e451c786e
1 changed files with 1 additions and 1 deletions

2
cli.c
View File

@ -873,7 +873,7 @@ static char *__ast_cli_generator(char *text, char *word, int state, int lock)
if (lock)
ast_pthread_mutex_unlock(&clilock);
free(dup);
return res ? res : NULL;
return res ? strdup(res) : NULL;
}
}
}