Avoid a null-pointer dereference when the dbpr command is invoked with
no arguments.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user