From: Simon Wilkinson Date: Thu, 21 Feb 2013 20:55:35 +0000 (+0000) Subject: bosserver: Remove a couple of dead assignments X-Git-Tag: upstream/1.8.0_pre1^2~1477 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=5d2d68f8acc31568b48a8cdf7959600cb56e8f9e;p=packages%2Fo%2Fopenafs.git bosserver: Remove a couple of dead assignments Remove a couple of places where we initialise a variable, only to assign a new value to it a few lines later. Caught by clang-analyzer Change-Id: I096b80cce851f3494475e6f9683715b081ff8375 Reviewed-on: http://gerrit.openafs.org/9208 Tested-by: BuildBot Reviewed-by: Derrick Brashear --- diff --git a/src/bozo/bosserver.c b/src/bozo/bosserver.c index 4c68b33f6..0412a2251 100644 --- a/src/bozo/bosserver.c +++ b/src/bozo/bosserver.c @@ -299,7 +299,6 @@ ReadBozoFile(char *aname) for (code = 0; code < MAXPARMS; code++) parms[code] = NULL; - tfile = (FILE *) 0; if (!aname) aname = (char *)bozo_fileName; tfile = fopen(aname, "r"); @@ -307,7 +306,7 @@ ReadBozoFile(char *aname) return 0; /* -1 */ instp = malloc(BOZO_BSSIZE); typep = malloc(BOZO_BSSIZE); - notifier = notp = malloc(BOZO_BSSIZE); + notp = malloc(BOZO_BSSIZE); while (1) { /* ok, read lines giving parms and such from the file */ tp = fgets(tbuffer, sizeof(tbuffer), tfile);