libCom/iocsh: Oops, allow NULL pathname.
This commit is contained in:
1 parent
c11a31f549
commit
c71093f47f
1 file changed
+2
-1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user