From a42197f0d670066c63f46b0af2eb3d01e8bb14f5 Mon Sep 17 00:00:00 2001 From: Dirk Zimoch Date: Mon, 8 Jun 2020 16:03:27 +0200 Subject: [PATCH] allow to write empty arrays with caput --- modules/ca/src/client/nciu.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ) {