From 9765db4254e3c76ce19e5285998239e6b8b46bb8 Mon Sep 17 00:00:00 2001 From: Marty Kraimer Date: Wed, 8 Aug 2001 15:04:34 +0000 Subject: [PATCH] check for chid null --- src/db/dbCaTest.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/db/dbCaTest.c b/src/db/dbCaTest.c index 12c9f60ec..3b56dc25b 100644 --- a/src/db/dbCaTest.c +++ b/src/db/dbCaTest.c @@ -89,7 +89,9 @@ long epicsShareAPI dbcar(char *precordname,int level) if (plink->type == CA_LINK) { ncalinks++; pca = (caLink *)plink->value.pv_link.pvt; - if(pca && (ca_field_type(pca->chid) != TYPENOTCONN)) { + if(pca + && pca->chid + && (ca_field_type(pca->chid) != TYPENOTCONN)) { nconnected++; nDisconnect += pca->nDisconnect; nNoWrite += pca->nNoWrite;