diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-08-10 16:21:58 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-08-10 16:21:58 +0000 |
commit | 8aac32721870fe28f96e38b56e612105382d9619 (patch) | |
tree | ecba7a29554edb19cb6a5fcf462c1a2c0e7af94f /channels/chan_mgcp.c | |
parent | 815b5b09da5e555add7bba3d8fca588e7611248a (diff) | |
parent | 1fc76768a99f651fccb359a836928fec4a6615a4 (diff) |
Resolve a problem with channel name tab completion.
Hitting tab without typing any part of a channel name resulted in no results.
This now results in getting a full list of active channels, just as it did
in previous versions of Asterisk.
Review: https://reviewboard.asterisk.org/r/818/
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.8@281529 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_mgcp.c')
-rw-r--r-- | channels/chan_mgcp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_mgcp.c b/channels/chan_mgcp.c index 485b39aad..a787eab72 100644 --- a/channels/chan_mgcp.c +++ b/channels/chan_mgcp.c @@ -3580,7 +3580,7 @@ static int find_and_retrans(struct mgcp_subchannel *sub, struct mgcp_request *re if (sscanf(req->identifier, "%30d", &seqno) != 1) { seqno = 0; } - for (cur = sub->parent->parent->responses, next = cur->next; cur; cur = next, next = cur->next) { + for (cur = sub->parent->parent->responses, next = cur ? cur->next : NULL; cur; cur = next, next = cur ? cur->next : NULL) { if (now - cur->whensent > RESPONSE_TIMEOUT) { /* Delete this entry */ if (prev) |