diff options
author | Mark Michelson <mmichelson@digium.com> | 2007-09-13 20:17:41 +0000 |
---|---|---|
committer | Mark Michelson <mmichelson@digium.com> | 2007-09-13 20:17:41 +0000 |
commit | c04887e428e45f85e1c39bf99e3b06f7aad06362 (patch) | |
tree | c7f468deaf2b9bca96b371964e14788a676fe9da /apps | |
parent | 28fbbde3106f2b8deb3a1627554bbbefe56caaa5 (diff) |
Merged revisions 82346 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r82346 | mmichelson | 2007-09-13 15:16:37 -0500 (Thu, 13 Sep 2007) | 4 lines
Preemptively fixing a possible segfault. It is possible that queuename is NULL
(meaning pause ALL queues), so use q->name instead.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@82347 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_queue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c index 2b3ba9add..940d652d8 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -3239,7 +3239,7 @@ static int set_member_paused(const char *queuename, const char *interface, const dump_queue_members(q); if(mem->realtime) - update_realtime_member_field(mem, queuename, "paused", paused ? "1" : "0"); + update_realtime_member_field(mem, q->name, "paused", paused ? "1" : "0"); ast_queue_log(q->name, "NONE", mem->membername, (paused ? "PAUSE" : "UNPAUSE"), "%s", S_OR(reason, "")); |