diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-09-13 20:17:41 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-09-13 20:17:41 +0000 |
commit | 72189716d724baf1d3aa6517130eb0ceef9e7e44 (patch) | |
tree | c7f468deaf2b9bca96b371964e14788a676fe9da /apps/app_queue.c | |
parent | 5a7a7ec10e0b49d91d3f66496562ad08ef0fb27f (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: http://svn.digium.com/svn/asterisk/trunk@82347 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_queue.c')
-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, "")); |