From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fabio M. Di Nitto Date: Wed, 23 Nov 2011 11:15:59 +0100 Subject: [Cluster-devel] [PATCH 40/41] qdiskd: fix uninitialized values In-Reply-To: <1322043360-17037-1-git-send-email-fdinitto@redhat.com> References: <1322043360-17037-1-git-send-email-fdinitto@redhat.com> Message-ID: <6569ed7b42f65bb9e691f05e5af561c88aab3fbf.1322043046.git.fdinitto@redhat.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Spotted by Coverity Scan Signed-off-by: Fabio M. Di Nitto --- :100644 100644 b99a672... b80046b... M cman/qdisk/scandisk.c cman/qdisk/scandisk.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/cman/qdisk/scandisk.c b/cman/qdisk/scandisk.c index b99a672..b80046b 100644 --- a/cman/qdisk/scandisk.c +++ b/cman/qdisk/scandisk.c @@ -642,7 +642,7 @@ static int sysfs_is_disk(char *path) static int scansysfs(struct devlisthead *devlisthead, const char *path, int level, int parent_holder) { struct devnode *startnode; - int i, n, maj, min, has_holder; + int i, n, maj = -1, min = -1, has_holder; struct dirent **namelist; struct stat sb; char newpath[MAXPATHLEN]; -- 1.7.4.4