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:
parent
5d37b6c6ae
commit
7fa9314c6b
|
@ -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;
|
||||
|
|
|
@ -307,6 +307,7 @@ struct Request
|
|||
|
||||
Request();
|
||||
void SetConfig(Config * pconfig);
|
||||
|
||||
void RequestStarts();
|
||||
void Clear();
|
||||
|
||||
|
|
Loading…
Reference in New Issue