From 0e3f04824e3ca6d79faa70efe4bf19048e096f28 Mon Sep 17 00:00:00 2001 From: "W. Eric Norum" Date: Thu, 19 Feb 2004 01:09:44 +0000 Subject: [PATCH] Don't pass NULL pointer to iocsh. --- src/iocsh/iocUtil.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/iocsh/iocUtil.c b/src/iocsh/iocUtil.c index 880f97b30..f8e574088 100644 --- a/src/iocsh/iocUtil.c +++ b/src/iocsh/iocUtil.c @@ -29,7 +29,8 @@ static const iocshArg * const runScriptArgs[1] = {&runScriptArg0}; static const iocshFuncDef runScriptFuncDef = {"<",1,runScriptArgs}; static void runScriptCallFunc(const iocshArgBuf *args) { - iocsh (args[0].sval); + if (args[0].sval) + iocsh(args[0].sval); } /* chdir */