Avoid a null-pointer dereference when the dbpr command is invoked with

no arguments.
This commit is contained in:
W. Eric Norum
2000-12-16 01:07:14 +00:00
parent 37fbc3b19d
commit faa077ca9e

View File

@@ -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;