libCom/iocsh: Oops, allow NULL pathname.

This commit is contained in:
Andrew Johnson
2011-04-26 15:18:30 -05:00
parent c11a31f549
commit c71093f47f

View File

@@ -798,7 +798,8 @@ iocshBody (const char *pathname, const char *commandLine)
int epicsShareAPI
iocsh (const char *pathname)
{
epicsEnvSet("IOCSH_STARTUP_SCRIPT", pathname);
if (pathname)
epicsEnvSet("IOCSH_STARTUP_SCRIPT", pathname);
return iocshBody(pathname, NULL);
}