Module: sip-router
Branch: master
Commit: 41a9fbf38ba84e542a546893a6ce9c48f14f3aa3
URL:    
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=41a9fbf38ba84e542a546893a6ce9c48f14f3aa3

Author: Jason Penton <[email protected]>
Committer: Jason Penton <[email protected]>
Date:   Tue Oct 29 10:31:52 2013 +0200

modules/tm: fixed placement of variable declarations to top of scope block

---

 modules/tm/t_suspend.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/modules/tm/t_suspend.c b/modules/tm/t_suspend.c
index c9cb01d..789d25a 100644
--- a/modules/tm/t_suspend.c
+++ b/modules/tm/t_suspend.c
@@ -380,6 +380,8 @@ done:
                /* unref the transaction */
                t_unref(t->uas.request);
        }else{
+               struct hdr_field *hdr, *prev = 0, *tmp = 0;
+
                tm_ctx_set_branch_index(T_BR_UNDEFINED);        
                /* unref the transaction */
                t_unref(t->uac[branch].reply);
@@ -391,7 +393,6 @@ done:
                del_nonshm_lump_rpl( &(t->uac[branch].reply->reply_lump) );
 
                /* free header's parsed structures that were added */
-               struct hdr_field *hdr, *prev = 0, *tmp = 0;
                for( hdr=t->uac[branch].reply->headers ; hdr ; hdr=hdr->next ) {
                        if ( hdr->parsed && hdr_allocs_parse(hdr) &&
                                (hdr->parsed<(void*)t->uac[branch].reply ||


_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to