From 95a05f49ea303b2a25c4465bf1bbe333fb869911 Mon Sep 17 00:00:00 2001 From: Simon Wilkinson Date: Tue, 19 Feb 2013 15:11:33 +0000 Subject: [PATCH] kauth: Remove unused assignments to bp We never use the character pointer once we've advanced it past the slash, so don't bother doing the work of advancing it. Caught by clang-analyzer Change-Id: I8ea561d6756685a13892f0635fa2e19b3f1233ab Reviewed-on: http://gerrit.openafs.org/9171 Reviewed-by: Derrick Brashear Tested-by: BuildBot Reviewed-by: Jeffrey Altman --- src/kauth/kkids.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/kauth/kkids.c b/src/kauth/kkids.c index 3439f63..90d9b1e 100644 --- a/src/kauth/kkids.c +++ b/src/kauth/kkids.c @@ -178,14 +178,12 @@ find_me(char *arg, char *parent_dir) */ strncpy(parent_dir, truename, bp - truename); parent_dir[bp - truename] = 0; - bp++; /*Skip the slash */ } else { /* * No slash appears in the given file name. Set parent_dir to the current * directory, and the last component as the given name. */ strcpy(parent_dir, "."); - bp = truename; } return 1; /* found it */ -- 1.9.4