remove assert on uninit mem

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8865 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2008-06-30 20:42:23 +00:00
parent 35dc909cf6
commit ebe53e826c
1 changed files with 3 additions and 8 deletions

View File

@ -426,20 +426,15 @@ readRequestHeader(TSession * const sessionP,
are not able to read the request header, or 0 if we can.
If we can't, *requestLineP is meaningless.
-----------------------------------------------------------------------------*/
char * line;
bool error;
bool endOfHeaders;
char * line = NULL;
bool error = FALSE;
bool endOfHeaders = FALSE;
skipToNonemptyLine(sessionP->conn, deadline, &error);
if (!error)
readHeader(sessionP->conn, deadline, &endOfHeaders, &line, &error);
/* End of headers is delimited by an empty line, and we skipped all
the empty lines above, so we could not have encountered EOH:
*/
assert(!endOfHeaders);
if (error)
*httpErrorCodeP = 408; /* Request Timeout */
else {