changed: in ClearOutputStreams() referencing 'config' only if not null

git-svn-id: svn://ttmath.org/publicrep/winix/trunk@946 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
Tomasz Sowa 2013-12-23 03:29:33 +00:00
parent 5d37b6c6ae
commit 7fa9314c6b
2 changed files with 6 additions and 1 deletions

View File

@ -21,6 +21,7 @@
Request::Request() : char_empty(0)
{
id = 0;
config = 0;
}
@ -34,7 +35,10 @@ void Request::SetConfig(Config * pconfig)
void Request::ClearOutputStreams()
{
size_t len = config->ezc_out_streams_size;
size_t len = 16;
if( config )
len = config->ezc_out_streams_size;
if( len < 1 || len > 64 )
len = 16;

View File

@ -307,6 +307,7 @@ struct Request
Request();
void SetConfig(Config * pconfig);
void RequestStarts();
void Clear();