From 5d2d68f8acc31568b48a8cdf7959600cb56e8f9e Mon Sep 17 00:00:00 2001 From: Simon Wilkinson Date: Thu, 21 Feb 2013 20:55:35 +0000 Subject: [PATCH] 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 --- src/bozo/bosserver.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/bozo/bosserver.c b/src/bozo/bosserver.c index 4c68b33f6f..0412a2251a 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);