bucoord: Remove dead initialisation
authorSimon Wilkinson <sxw@your-file-system.com>
Mon, 25 Feb 2013 10:24:53 +0000 (10:24 +0000)
committerJeffrey Altman <jaltman@your-file-system.com>
Mon, 25 Feb 2013 21:27:24 +0000 (13:27 -0800)
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 <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>

src/bucoord/dsvs.c

index 74b17db..ec3d35b 100644 (file)
@@ -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)