bailout = 1;
}
- if (strlen(ascancmd)) {
+ if (ascancmd && strlen(ascancmd)) {
if (ConstructLocalBinPath(ascancmd, &scanCmdpath)) {
bozo_Log("BNODE: command path invalid '%s'\n", ascancmd);
bailout = 1;
bailout = 1;
}
- if (strlen(ascancmd)) {
+ if (ascancmd && strlen(ascancmd)) {
sscanf(scanCmdpath, "%s", cmdname);
#ifdef AFS_NT40_ENV
AppendExecutableExtension(cmdname);
te->filecmd = fileCmdpath;
te->volcmd = volCmdpath;
te->salcmd = salCmdpath;
- if (strlen(ascancmd))
+ if (ascancmd && strlen(ascancmd))
te->scancmd = scanCmdpath;
else
te->scancmd = (char *)0;