aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authormmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2007-09-13 20:16:37 +0000
committermmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2007-09-13 20:16:37 +0000
commit3045a592f85d7c642ca67ae18c51ad4681d83c01 (patch)
treec3a4b6912e1fdb3e080411ff909ad7c4d8b1fdf6 /apps
parent5350e5db3c4c5f06e1e7f13e397daaf2474d8f2f (diff)
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/branches/1.4@82346 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r--apps/app_queue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c
index 691902927..af9c78c5b 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -3017,7 +3017,7 @@ static int set_member_paused(const char *queuename, const char *interface, int p
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", "");