fix missing initilization

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8815 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2008-06-22 00:38:39 +00:00
parent f9e8a2e27c
commit 85c733428b
2 changed files with 6 additions and 4 deletions

View File

@ -868,8 +868,10 @@ readAndProcessHeaders(TSession * const sessionP,
-----------------------------------------------------------------------------*/ -----------------------------------------------------------------------------*/
bool endOfHeaders; bool endOfHeaders;
assert(!sessionP->validRequest);
/* Calling us doesn't make sense if there is already a valid request */ /* Calling us doesn't make sense if there is already a valid request */
if (sessionP->validRequest) {
return;
}
*httpErrorCodeP = 0; /* initial assumption */ *httpErrorCodeP = 0; /* initial assumption */
endOfHeaders = false; /* Caller assures us there is at least one header */ endOfHeaders = false; /* Caller assures us there is at least one header */

View File

@ -529,7 +529,7 @@ processDataFromClient(TConn * const connectionP,
uint32_t const timeout, uint32_t const timeout,
bool * const keepAliveP) { bool * const keepAliveP) {
TSession session; TSession session = {0}; /* initilization, an afforadble alternative to random memory being misinterpreted! */
RequestInit(&session, connectionP); RequestInit(&session, connectionP);