]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Don't allocate unused variable.
authorOlle Johansson <oej@edvina.net>
Thu, 23 Nov 2006 11:01:47 +0000 (11:01 +0000)
committerOlle Johansson <oej@edvina.net>
Thu, 23 Nov 2006 11:01:47 +0000 (11:01 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@47959 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 7e2ebb676312b61baa5510b763b2d25cd37fef42..1a1abf2e085fd45cefe7f2237cd6b1f75fa1de09 100644 (file)
@@ -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 */