db: Fix possible error handling in dbPut

This commit is contained in:
Michael Davidsaver
2012-10-11 18:10:00 -05:00
committed by Andrew Johnson
parent 71079ede4b
commit 7cac267a4b

View File

@@ -1442,8 +1442,9 @@ long epicsShareAPI dbPut(DBADDR *paddr, short dbrType,
else
offset = 0;
if (no_elements < nRequest) nRequest = no_elements;
status = dbPutConvertRoutine[dbrType][field_type](paddr, pbuffer,
nRequest, no_elements, offset);
if (!status)
status = dbPutConvertRoutine[dbrType][field_type](paddr, pbuffer,
nRequest, no_elements, offset);
/* update array info */
if (!status &&