mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 17:01:08 +02:00
initialize not initialized var
Origin commit data
------------------
Commit: 926e0ce141
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2012-11-05 (Mon, 05 Nov 2012)
Origin message was:
------------------
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;
|
||||
}
|
||||
//-------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user