diff --git a/modules/ca/src/client/nciu.cpp b/modules/ca/src/client/nciu.cpp index 0a7e70899..ebf30fec7 100644 --- a/modules/ca/src/client/nciu.cpp +++ b/modules/ca/src/client/nciu.cpp @@ -328,7 +328,7 @@ void nciu::write ( if ( ! this->accessRightState.writePermit() ) { throw cacChannel::noWriteAccess(); } - if ( countIn > this->count || countIn == 0 ) { + if ( countIn > this->count) { throw cacChannel::outOfBounds(); } if ( type == DBR_STRING ) { @@ -349,7 +349,7 @@ cacChannel::ioStatus nciu::write ( if ( ! this->accessRightState.writePermit() ) { throw cacChannel::noWriteAccess(); } - if ( countIn > this->count || countIn == 0 ) { + if ( countIn > this->count) { throw cacChannel::outOfBounds(); } if ( type == DBR_STRING ) {