aboutsummaryrefslogtreecommitdiffstats
path: root/cli.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-04-30 19:04:00 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-04-30 19:04:00 +0000
commitec641e6d2649379ef7ea2fa94bc3db2437334f0a (patch)
tree4b710a5c262b210ec50177318d725cfae41cbf60 /cli.c
parent023547997a1cba14952540294e95b757f53d8dfc (diff)
Little revert on some CLI stuff
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@939 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'cli.c')
-rwxr-xr-xcli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli.c b/cli.c
index fa33bcc33..e5fc66120 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;
}
}
}