mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 09:21:18 +02:00
initialize not initialized var
This commit is contained in:
@@ -22,6 +22,11 @@ long CWebserverConnection::GConnectionNumber = 0;
|
||||
// Constructor & Destructor & Initialization
|
||||
//=============================================================================
|
||||
CWebserverConnection::CWebserverConnection(CWebserver *pWebserver) {
|
||||
sock = 0;
|
||||
ConnectionNumber = 0;
|
||||
enlapsed_request = 0;
|
||||
enlapsed_response = 0;
|
||||
|
||||
Webserver = pWebserver;
|
||||
Request.Webserver = pWebserver;
|
||||
Request.Connection = this;
|
||||
@@ -39,6 +44,12 @@ CWebserverConnection::CWebserverConnection(CWebserver *pWebserver) {
|
||||
//-------------------------------------------------------------------------
|
||||
CWebserverConnection::CWebserverConnection() {
|
||||
// aprintf("test CWebserverConnection::CWebserverConnection()\n");
|
||||
sock = 0;
|
||||
RequestCanceled = 0;
|
||||
keep_alive = 0;
|
||||
HttpStatus = 0;
|
||||
enlapsed_request = 0;
|
||||
enlapsed_response = 0;
|
||||
ConnectionNumber = ++GConnectionNumber;
|
||||
}
|
||||
//-------------------------------------------------------------------------
|
||||
|
@@ -141,7 +141,7 @@ public:
|
||||
CStringList HookVarList; // Variables in Hook-Handling passing to other Hooks
|
||||
THttp_Method Method; // HTTP Method (requested)
|
||||
// constructor & deconstructor
|
||||
CyhookHandler(){};
|
||||
CyhookHandler(){ContentLength = 0; keep_alive = 0; _outIndent = 0;};
|
||||
virtual ~CyhookHandler(){};
|
||||
|
||||
// hook slot handler
|
||||
|
Reference in New Issue
Block a user