nhttpd: init var

This commit is contained in:
Jacek Jendrzej
2016-02-16 19:45:54 +01:00
parent 1132b7970e
commit 2bb2058abe
4 changed files with 4 additions and 1 deletions

View File

@@ -52,6 +52,7 @@ CWebserverConnection::CWebserverConnection() {
enlapsed_request = 0;
enlapsed_response = 0;
ConnectionNumber = ++GConnectionNumber;
Webserver = NULL;
}
//-------------------------------------------------------------------------
CWebserverConnection::~CWebserverConnection(void) {

View File

@@ -145,7 +145,7 @@ public:
CStringList HookVarList; // Variables in Hook-Handling passing to other Hooks
THttp_Method Method; // HTTP Method (requested)
// constructor & deconstructor
CyhookHandler(){ContentLength = 0; RangeStart = 0; RangeEnd = -1; cached = false; keep_alive = 0; _outIndent = 0;status = HANDLED_NONE;Method = M_UNKNOWN;httpStatus = HTTP_NIL;outType = plain;};
CyhookHandler(){ContentLength = 0; RangeStart = 0; RangeEnd = -1; cached = false; keep_alive = 0; _outIndent = 0;status = HANDLED_NONE;Method = M_UNKNOWN;httpStatus = HTTP_NIL;outType = plain;LastModified=0;};
virtual ~CyhookHandler(){};
// hook slot handler

View File

@@ -38,6 +38,7 @@
CWebserverRequest::CWebserverRequest(CWebserver *pWebserver) {
Webserver = pWebserver;
CWebserverRequest();
Connection=NULL;
}
//=============================================================================

View File

@@ -34,6 +34,7 @@
CWebserverResponse::CWebserverResponse(CWebserver *pWebserver) {
Webserver = pWebserver;
CWebserverResponse();
Connection=NULL;
}
//-----------------------------------------------------------------------------
CWebserverResponse::CWebserverResponse() {