[Freeswitch-svn] [commit] r8865 - freeswitch/trunk/libs/xmlrpc-c/lib/abyss/src
Freeswitch SVN
anthm at freeswitch.org
Mon Jun 30 16:42:24 EDT 2008
Author: anthm
Date: Mon Jun 30 16:42:23 2008
New Revision: 8865
Modified:
freeswitch/trunk/libs/xmlrpc-c/lib/abyss/src/http.c
Log:
remove assert on uninit mem
Modified: freeswitch/trunk/libs/xmlrpc-c/lib/abyss/src/http.c
==============================================================================
--- freeswitch/trunk/libs/xmlrpc-c/lib/abyss/src/http.c (original)
+++ freeswitch/trunk/libs/xmlrpc-c/lib/abyss/src/http.c Mon Jun 30 16:42:23 2008
@@ -426,20 +426,15 @@
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 {
More information about the Freeswitch-svn
mailing list