From 1fa650cee2d6cc708ee29a963ad3498a808bbde8 Mon Sep 17 00:00:00 2001 From: Andrew Deason Date: Wed, 14 Oct 2009 22:43:27 -0500 Subject: [PATCH] Fix unitialized variable warning in cfghost.c Initialize cellentry. It does not appear to be possible to actually hit code that references an uninitialized cellentry, but the compiler can still complain. Reviewed-on: http://gerrit.openafs.org/665 Tested-by: Jeffrey Altman Reviewed-by: Jeffrey Altman --- src/libadmin/cfg/cfghost.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libadmin/cfg/cfghost.c b/src/libadmin/cfg/cfghost.c index d23068642..4cd6043cc 100644 --- a/src/libadmin/cfg/cfghost.c +++ b/src/libadmin/cfg/cfghost.c @@ -162,7 +162,7 @@ cfg_HostQueryStatus(const char *hostName, /* name of host */ /* one or more config files appears to be invalid */ serverSt = ADMCFGSERVERBASICINFOINVALID; } else { - struct afsconf_entry *cellentry; + struct afsconf_entry *cellentry = NULL; if (confdir->cellName == NULL || *confdir->cellName == '\0') { /* no cell set for server */ -- 2.39.5