[Asterisk-cvs] asterisk/channels chan_sip.c,1.734,1.735

kpfleming at lists.digium.com kpfleming at lists.digium.com
Wed May 18 22:44:31 CDT 2005


Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv9477/channels

Modified Files:
	chan_sip.c 
Log Message:
move variable declarations to top of function where they belong (bug #4303)


Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.734
retrieving revision 1.735
diff -u -d -r1.734 -r1.735
--- chan_sip.c	16 May 2005 16:16:41 -0000	1.734
+++ chan_sip.c	19 May 2005 02:49:34 -0000	1.735
@@ -10023,14 +10023,14 @@
 	struct ast_ha *oldha = NULL;
 	char *varname = NULL, *varval = NULL;
 	struct ast_variable *tmpvar = NULL;
+	struct ast_flags userflags = {(0)};
+	struct ast_flags mask = {(0)};
+
 
 	user = (struct sip_user *)malloc(sizeof(struct sip_user));
 	if (!user) {
 		return NULL;
 	}
-	struct ast_flags userflags = {(0)};
-	struct ast_flags mask = {(0)};
-
 	memset(user, 0, sizeof(struct sip_user));
 	suserobjs++;
 	ASTOBJ_INIT(user);
@@ -10170,6 +10170,9 @@
 	time_t regseconds;
 	char *varname = NULL, *varval = NULL;
 	struct ast_variable *tmpvar = NULL;
+	struct ast_flags peerflags = {(0)};
+	struct ast_flags mask = {(0)};
+
 
 	if (!realtime)
 		/* Note we do NOT use find_peer here, to avoid realtime recursion */
@@ -10197,9 +10200,6 @@
 	if (!peer)
 		return NULL;
 
-	struct ast_flags peerflags = {(0)};
-	struct ast_flags mask = {(0)};
-
 	peer->lastmsgssent = -1;
 	if (!found) {
 		if (name)




More information about the svn-commits mailing list