Don't seg-fault if no argument is passed to dbtr.

This commit is contained in:
W. Eric Norum
2004-01-19 19:52:08 +00:00
parent e53964fbba
commit 0b3f346659
+2
View File
@@ -381,6 +381,8 @@ long epicsShareAPI dbtr(char *pname)
long status;
struct dbCommon *precord;
if(pname == NULL)
return 0;
status=dbNameToAddr(pname,&addr);
if(status) {
errMessage(status," dbNameToAddr failed");