afsd: Detect -dcache presence correctly

cmd_OptionAsInt will return 0 if the requested option is present and
valid.

Change-Id: Ie5154648ccb274b04617dcb8cc397ed3aa3d97e6
Reviewed-on: http://gerrit.openafs.org/7444
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
This commit is contained in:
Andrew Deason 2012-05-21 18:14:16 -05:00 committed by Derrick Brashear
parent 9eb924f16c
commit 258a092260

View File

@ -1735,7 +1735,7 @@ mainproc(struct cmd_syndesc *as, void *arock)
}
}
if (cmd_OptionAsInt(as, OPT_dcache, &dCacheSize))
if (cmd_OptionAsInt(as, OPT_dcache, &dCacheSize) == 0)
sawDCacheSize = 1;
cmd_OptionAsInt(as, OPT_volumes, &vCacheSize);