[Asterisk-cvs] asterisk/channels chan_sip.c,1.339,1.340

markster at lists.digium.com markster at lists.digium.com
Sun Apr 25 23:35:16 CDT 2004


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

Modified Files:
	chan_sip.c 
Log Message:
Committed a little bit too quickly there...


Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.339
retrieving revision 1.340
diff -u -d -r1.339 -r1.340
--- chan_sip.c	26 Apr 2004 03:38:32 -0000	1.339
+++ chan_sip.c	26 Apr 2004 03:41:07 -0000	1.340
@@ -1934,7 +1934,7 @@
 static void parse(struct sip_request *req)
 {
 	/* Divide fields by NULL's */
-	char *c, *last = NULL;
+	char *c;
 	int f = 0;
 	c = req->data;
 
@@ -1958,10 +1958,7 @@
 			} else {
 				if ((c[1] == ' ') || (c[1] == '\t')) {
 					/* Continuation of previous header */
-					if (last) {
-						while(last < c)
-							*(last++) = ' ';
-					}
+					*c = ' ';
 				} else {
 					f++;
 					req->header[f] = c + 1;




More information about the svn-commits mailing list