X-Git-Url: https://git.openafs.org/?p=openafs.git;a=blobdiff_plain;f=src%2FWINNT%2Fafsd%2Fafsd_init.c;h=b2e96f01ef2272fbe1666e0ceb90089beaca1486;hp=a09e4c14476ceea011bf13b0780b58aadd0b6d71;hb=5c7482f2fcf174fe61589dedae1d1bf4ea0bff31;hpb=3a7d53e8bd1bb4ed2af221b823f25f58e4dffbf1 diff --git a/src/WINNT/afsd/afsd_init.c b/src/WINNT/afsd/afsd_init.c index a09e4c1..b2e96f0 100644 --- a/src/WINNT/afsd/afsd_init.c +++ b/src/WINNT/afsd/afsd_init.c @@ -323,9 +323,10 @@ int afsd_InitCM(char **reasonP) cm_mountRootLen = sizeof(cm_mountRoot); code = RegQueryValueEx(parmKey, "Mountroot", NULL, NULL, cm_mountRoot, &cm_mountRootLen); - if (code == ERROR_SUCCESS) + if (code == ERROR_SUCCESS) { afsi_log("Mount root %s", cm_mountRoot); - else { + cm_mountRootLen = strlen(cm_mountRoot); + } else { strcpy(cm_mountRoot, "/afs"); cm_mountRootLen = 4; /* Don't log */