diff --git a/src/WINNT/afsd/cm_freelance.c b/src/WINNT/afsd/cm_freelance.c index f512a1d01d..336cb5e147 100644 --- a/src/WINNT/afsd/cm_freelance.c +++ b/src/WINNT/afsd/cm_freelance.c @@ -219,7 +219,7 @@ void cm_InitFakeRootDir() { if (cm_fakeDirSize != dirSize) { if (cm_FakeRootDir) free(cm_FakeRootDir); - cm_FakeRootDir = malloc(dirSize); + cm_FakeRootDir = calloc(dirSize, 1); cm_fakeDirSize = dirSize; }