Module: sip-router
Branch: master
Commit: 96262b5a05d8f130c6460a8bd97555bc53278f55
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=96262b5…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Date: Thu Aug 26 21:47:56 2010 +0200
mtree: declare variables at function start
Fixes compilation for gcc < 3.0.
---
modules/mtree/mtree.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/modules/mtree/mtree.c b/modules/mtree/mtree.c
index 51d355a..a1626d2 100644
--- a/modules/mtree/mtree.c
+++ b/modules/mtree/mtree.c
@@ -597,11 +597,12 @@ int mt_table_spec(char* val)
param_t* params_list = NULL;
param_hooks_t phooks;
param_t *pit=NULL;
- if(val==NULL)
- return -1;
m_tree_t tmp;
m_tree_t *it, *prev, *ndl;
str s;
+
+ if(val==NULL)
+ return -1;
if(!shm_initialized())
{