[prev in list] [next in list] [prev in thread] [next in thread] 

List:       helix-protocol-cvs
Subject:    [Protocol-cvs] http httppars.cpp,1.5,1.6
From:       ehyche () helixcommunity ! org
Date:       2005-04-22 21:32:12
[Download RAW message or body]

Update of /cvsroot/protocol/http
In directory cvs-new:/tmp/cvs-serv19354/http

Modified Files:
	httppars.cpp 
Log Message:
Warning removal.
Contributed by: Alberto Meza (ameza@dextratech.com)


Index: httppars.cpp
===================================================================
RCS file: /cvsroot/protocol/http/httppars.cpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- httppars.cpp	27 Sep 2004 20:14:53 -0000	1.5
+++ httppars.cpp	22 Apr 2005 21:32:09 -0000	1.6
@@ -507,6 +507,9 @@
     HTTPMessage* pHTTPMsg = 0;
     clearMessageLines();
     int msgOffset = scanMessageHeader(pMsg, nMsgLen);
+
+    CHXString* str = NULL;
+
     if(msgOffset > 0)
     {
 	if(m_msglines.GetCount() == 0)
@@ -514,7 +517,7 @@
 	    nMsgLen = 0;
 	    return 0;
 	}
-	CHXString* str = (CHXString*)m_msglines.GetHead();
+        str = (CHXString*) m_msglines.GetHead();
 	if(strncasecmp((*str), "HTTP/", 5) == 0)
 	{
 	    pHTTPMsg = parseResponse();
@@ -531,7 +534,6 @@
     }
     else
     {
-	//nMsgLen = 0;
 
 	/* Might be a HTTP/0.9 request.  No extra blank line. Drat. */
 	if(m_msglines.GetCount() == 0)
@@ -539,7 +541,7 @@
 	    nMsgLen = 0;
 	    return 0;
 	}
-	CHXString* str = (CHXString*)m_msglines.GetHead();
+        str = (CHXString*)m_msglines.GetHead();
 	pHTTPMsg = parseRequest();
 	if(!pHTTPMsg || pHTTPMsg->majorVersion() > 0)
 	{



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic