1
0

Fixed warnings in HTTP parser.

This commit is contained in:
madmaxoft
2013-12-20 16:20:54 +01:00
parent 812375fab1
commit b66722f735
4 changed files with 15 additions and 5 deletions

View File

@@ -97,15 +97,17 @@ void cNameValueParser::Parse(const char * a_Data, int a_Size)
{
ASSERT(m_State != psFinished); // Calling Parse() after Finish() is wrong!
if ((m_State == psInvalid) || (m_State == psFinished))
{
return;
}
int Last = 0;
for (int i = 0; i < a_Size;)
{
switch (m_State)
{
case psInvalid:
case psFinished:
{
return;
}
case psKeySpace:
{
// Skip whitespace until a non-whitespace is found, then start the key: