From fa564fbfdffbbf371142b18683bd59e7896317cb Mon Sep 17 00:00:00 2001 From: Kukhee Kim Date: Tue, 25 May 2010 07:57:49 -0700 Subject: [PATCH 1/2] BUG 572589: Make dbl emit empty strings for non-existent fields --- src/db/dbTest.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/db/dbTest.c b/src/db/dbTest.c index f4e29d62a..b37f91d7b 100644 --- a/src/db/dbTest.c +++ b/src/db/dbTest.c @@ -155,6 +155,7 @@ long epicsShareAPI dbl(const char *precordTypename, const char *fields) if (!strcmp(papfields[ifield], "recordType")) { pvalue = dbGetRecordTypeName(pdbentry); } else { + printf(", "); continue; } } else { From 8337b5063d96dcd013bfbe7833f0275801b65542 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 27 May 2010 05:47:07 -0500 Subject: [PATCH 2/2] Fix NULL handle issue --- src/libCom/macLib/macUtil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libCom/macLib/macUtil.c b/src/libCom/macLib/macUtil.c index 55246a725..605ec99c5 100644 --- a/src/libCom/macLib/macUtil.c +++ b/src/libCom/macLib/macUtil.c @@ -231,7 +231,7 @@ epicsShareAPI macParseDefns( free( ( char * ) del ); /* debug output */ - if ( handle->debug & 1 ) + if ( handle != NULL && handle->debug & 1 ) printf( "macParseDefns() -> %d\n", num / 2 ); /* success exit; return number of definitions */