From 7fa9314c6b0fbb17efec26e9ba558486afaab434 Mon Sep 17 00:00:00 2001 From: Tomasz Sowa Date: Mon, 23 Dec 2013 03:29:33 +0000 Subject: [PATCH] changed: in ClearOutputStreams() referencing 'config' only if not null git-svn-id: svn://ttmath.org/publicrep/winix/trunk@946 e52654a7-88a9-db11-a3e9-0013d4bc506e --- core/request.cpp | 6 +++++- core/request.h | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/core/request.cpp b/core/request.cpp index d9a389d..70a3efc 100755 --- a/core/request.cpp +++ b/core/request.cpp @@ -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; diff --git a/core/request.h b/core/request.h index 1a5fc17..e202833 100755 --- a/core/request.h +++ b/core/request.h @@ -307,6 +307,7 @@ struct Request Request(); void SetConfig(Config * pconfig); + void RequestStarts(); void Clear();