From 0e451c786ed50f71e900fe9a14636fdcbf35043f Mon Sep 17 00:00:00 2001 From: Mark Spencer <markster@digium.com> Date: Wed, 30 Apr 2003 19:04:00 +0000 Subject: [PATCH] Little revert on some CLI stuff git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@939 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- cli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli.c b/cli.c index fa33bcc33c..e5fc661209 100755 --- a/cli.c +++ b/cli.c @@ -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; } } } -- GitLab