From 7c58404cb68d9f1680574917e96e47b64ce997dc Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Thu, 12 Oct 2000 00:22:54 +0000 Subject: [PATCH] fixed use of nill piiu pointer --- src/ca/nciu.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/ca/nciu.cpp b/src/ca/nciu.cpp index 1577d0cd4..9ea386b66 100644 --- a/src/ca/nciu.cpp +++ b/src/ca/nciu.cpp @@ -328,12 +328,14 @@ void nciu::connect ( unsigned nativeType, return; } - this->lockPIIU (); - bool v41Ok = this->piiu->ca_v41_ok (); - this->unlockPIIU (); - this->lock (); - + bool v41Ok; + if ( this->piiu ) { + v41Ok = this->piiu->ca_v41_ok (); + } + else { + v41Ok = false; + } this->typeCode = nativeType; this->count = nativeCount; this->sid = sidIn;