From faa077ca9e1d853c8e24a60a3044844199f643dc Mon Sep 17 00:00:00 2001 From: "W. Eric Norum" Date: Sat, 16 Dec 2000 01:07:14 +0000 Subject: [PATCH] Avoid a null-pointer dereference when the dbpr command is invoked with no arguments. --- src/db/dbTest.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/db/dbTest.c b/src/db/dbTest.c index ea7856bd6..b022c8fde 100644 --- a/src/db/dbTest.c +++ b/src/db/dbTest.c @@ -350,6 +350,8 @@ long epicsShareAPI dbpr(char *pname,int interest_level) char *pmsg; int tab_size; + if (pname == NULL) + return; pmsg = pMsgBuff->message; tab_size = 20;