提交 ebe53e82 authored 作者: Anthony Minessale's avatar Anthony Minessale

remove assert on uninit mem

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8865 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 35dc909c
......@@ -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 {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论