From ebe53e826ca204c1b75d5466d41921d6ab590039 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Mon, 30 Jun 2008 20:42:23 +0000 Subject: [PATCH] remove assert on uninit mem git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8865 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- libs/xmlrpc-c/lib/abyss/src/http.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/libs/xmlrpc-c/lib/abyss/src/http.c b/libs/xmlrpc-c/lib/abyss/src/http.c index 7103fb15cd..aeb449690f 100644 --- a/libs/xmlrpc-c/lib/abyss/src/http.c +++ b/libs/xmlrpc-c/lib/abyss/src/http.c @@ -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 {