diff options
author | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-11-23 11:01:47 +0000 |
---|---|---|
committer | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-11-23 11:01:47 +0000 |
commit | de578180ef6979f2adef84b210c512576b6c4e53 (patch) | |
tree | f94230424785b5486310edb5557bf4380760aea0 /channels | |
parent | 72caddea31ba2ffbd0a87cd5947de27536363b42 (diff) |
Don't allocate unused variable.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@47959 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_sip.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 7e2ebb676..1a1abf2e0 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -14296,7 +14296,6 @@ static int handle_request(struct sip_pvt *p, struct sip_request *req, struct soc { /* Called with p->lock held, as well as p->owner->lock if appropriate, keeping things relatively static */ - struct sip_request resp; const char *cmd; const char *cseq; const char *useragent; @@ -14309,9 +14308,6 @@ static int handle_request(struct sip_pvt *p, struct sip_request *req, struct soc char *e; int error = 0; - /* Clear out potential response */ - memset(&resp, 0, sizeof(resp)); - /* Get Method and Cseq */ cseq = get_header(req, "Cseq"); cmd = req->header[0]; @@ -16868,6 +16864,7 @@ static int sip_do_reload(enum channelreloadreason reason) sip_destroy(iterator->call); } ASTOBJ_UNLOCK(iterator); + } while(0)); /* Then, actually destroy users and registry */ |