From 419a05e177eb34815d6f8fad64654376805f1552 Mon Sep 17 00:00:00 2001 From: Pixel Date: Thu, 31 Oct 2002 23:20:34 +0000 Subject: Bleh --- generic/Handle.cpp | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'generic/Handle.cpp') diff --git a/generic/Handle.cpp b/generic/Handle.cpp index 4e318c6..8aa48b8 100644 --- a/generic/Handle.cpp +++ b/generic/Handle.cpp @@ -10,11 +10,17 @@ #define _(x) x #endif -Handle::Handle(const Handle & nh) : itell(0), h(nh.h >= 0 ? dup(nh.h) : nh.h), closed(nh.closed), nonblock(nh.closed), zfile(0), z(0) { +Handle::Handle(const Handle & nh) : itell(0), h(nh.h >= 0 ? dup(nh.h) : nh.h), closed(nh.closed), nonblock(nh.closed) +#ifdef HAVE_ZLIB +, zfile(0), z(0) +#endif +{ // cerr << "Duplication of handle " << nh.h << " to " << h << endl; +#ifdef HAVE_ZLIB if ((h >= 0) && (nh.z)) { SetZ(nh.z); } +#endif } Handle::~Handle() { @@ -22,7 +28,11 @@ Handle::~Handle() { close(); } -Handle::Handle(int nh) : h(nh), closed(false), nonblock(false), zfile(0), z(0) { +Handle::Handle(int nh) : h(nh), closed(false), nonblock(false) +#ifdef HAVE_ZLIB +, zfile(0), z(0) +#endif +{ // cerr << "Initialising handle " << h << endl; } -- cgit v1.2.3