]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Create a duplicate of the channel's member name as the tab completion stuff will...
authorJoshua Colp <jcolp@digium.com>
Thu, 4 Oct 2007 14:51:57 +0000 (14:51 +0000)
committerJoshua Colp <jcolp@digium.com>
Thu, 4 Oct 2007 14:51:57 +0000 (14:51 +0000)
(closes issue #10884)
Reported by: adamg

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@84637 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_queue.c

index eb5aa8fd29ea6dc1ca3b4b4f3916cbaf4244af4c..a7de4ba98a7e1d64a2346231b68a9d8200f099ad 100644 (file)
@@ -4540,7 +4540,7 @@ static char *complete_queue_remove_member(const char *line, const char *word, in
                                        ast_mutex_unlock(&q->lock);
                                        tmp = m->membername;
                                        ao2_ref(m, -1);
-                                       return tmp;
+                                       return ast_strdup(tmp);
                                }
                                ao2_ref(m, -1);
                        }