bos-mrafs-support-20010221
authorDerrick Brashear <shadow@dementia.org>
Thu, 22 Feb 2001 00:34:45 +0000 (00:34 +0000)
committerDerrick Brashear <shadow@dementia.org>
Thu, 22 Feb 2001 00:34:45 +0000 (00:34 +0000)
Make it work as intended

src/bozo/fsbnodeops.c

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