Little revert on some CLI stuff
authorMark Spencer <markster@digium.com>
Wed, 30 Apr 2003 19:04:00 +0000 (19:04 +0000)
committerMark Spencer <markster@digium.com>
Wed, 30 Apr 2003 19:04:00 +0000 (19:04 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@939 65c4cc65-6c06-0410-ace0-fbb531ad65f3

cli.c

diff --git a/cli.c b/cli.c
index fa33bcc..e5fc661 100755 (executable)
--- 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;
                                        }
                                }
                        }