diff --git a/src/dev/devHistogramSoft.c b/src/dev/devHistogramSoft.c index ddb1cc8b5..caa005b1f 100644 --- a/src/dev/devHistogramSoft.c +++ b/src/dev/devHistogramSoft.c @@ -80,8 +80,8 @@ static long init_record(phistogram) /* histogram.svl must be a CONSTANT or a PV_LINK or a DB_LINK or a CA_LINK*/ switch (phistogram->svl.type) { case (CONSTANT) : - recGblInitConstantLink(&phistogram->svl,DBF_DOUBLE,&phistogram->sgnl); - phistogram->udf = FALSE; + if(recGblInitConstantLink(&phistogram->svl,DBF_DOUBLE,&phistogram->sgnl)) + phistogram->udf = FALSE; break; case (PV_LINK) : case (DB_LINK) : diff --git a/src/dev/devHistogramTestAsyn.c b/src/dev/devHistogramTestAsyn.c index 5b3ef3bbe..dc5868330 100644 --- a/src/dev/devHistogramTestAsyn.c +++ b/src/dev/devHistogramTestAsyn.c @@ -107,7 +107,8 @@ static long init_record(phistogram) callbackSetCallback(myCallback,&pcallback->callback); pcallback->precord = (struct dbCommon *)phistogram; pcallback->wd_id = wdCreate(); - recGblInitConstantLink(&phistogram->svl,DBF_DOUBLE,&phistogram->sgnl); + if(recGblInitConstantLink(&phistogram->svl,DBF_DOUBLE,&phistogram->sgnl)) + phistogram->udf = FALSE; break; default : recGblRecordError(S_db_badField,(void *)phistogram,