From 788d84e8e7112555fc373a15e63f63d7ac157807 Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Tue, 14 Aug 2018 10:42:22 +0200 Subject: [PATCH] topos: declare variable at the beginning of the block --- src/modules/topos/tps_storage.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/topos/tps_storage.c b/src/modules/topos/tps_storage.c index 8d9a8883569..69d5c7c2b58 100644 --- a/src/modules/topos/tps_storage.c +++ b/src/modules/topos/tps_storage.c @@ -210,6 +210,7 @@ int tps_storage_fill_contact(sip_msg_t *msg, tps_data_t *td, str *uuid, int dir) str sv; sip_uri_t puri; int i; + int contact_len; if(dir==TPS_DIR_DOWNSTREAM) { sv = td->bs_contact; @@ -226,7 +227,7 @@ int tps_storage_fill_contact(sip_msg_t *msg, tps_data_t *td, str *uuid, int dir) return -1; } - int contact_len = sv.len; + contact_len = sv.len; if (_tps_contact_host.len) contact_len = sv.len - puri.host.len + _tps_contact_host.len;