From: Simon Wilkinson Date: Mon, 25 Feb 2013 10:24:53 +0000 (+0000) Subject: bucoord: Remove dead initialisation X-Git-Tag: upstream/1.8.0_pre1^2~1424 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=f63f7b90ebbd4133b9e12ca643c8d3ccb8d445be;p=packages%2Fo%2Fopenafs.git bucoord: Remove dead initialisation matchLength is set regardless of what the separator is, so we don't need to provide a default value. Caught by clang-analyzer Change-Id: Iac8fe8db8832cf2b3347ec1bdacc7245bddf542b Reviewed-on: http://gerrit.openafs.org/9257 Tested-by: BuildBot Reviewed-by: Derrick Brashear Reviewed-by: Jeffrey Altman --- diff --git a/src/bucoord/dsvs.c b/src/bucoord/dsvs.c index 74b17dbaf..ec3d35b36 100644 --- a/src/bucoord/dsvs.c +++ b/src/bucoord/dsvs.c @@ -542,7 +542,6 @@ FindDump(struct bc_config *aconfig, char *nodeString, return (-3); } - matchLength = 0; curptr = &nodeString[1]; /* past first / */ separator = strchr(curptr, '/'); if (separator == 0)