summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-12-06 17:27:04 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2023-01-01 14:34:57 -0800
commit47f2e64d865568d4f00cb97e42ad5cfc47e9c161 (patch)
treeb97928d7d27ca46f1acf0044df919abe215f567b
parentd212d91dad2fdc3f30b79d90fca763659ac23307 (diff)
downloadxorg-util-makedepend-47f2e64d865568d4f00cb97e42ad5cfc47e9c161.tar.gz
quoteColons: Remove redundant initialization of tmp
As warned by cppcheck: pr.c:83:9: style: Redundant initialization for 'tmp'. The initialized value is overwritten before it is read. [redundantInitialization] tmp = input; ^ pr.c:74:21: note: tmp is initialized const char *tmp = input; ^ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--pr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pr.c b/pr.c
index 5c5b8b8..db2bd34 100644
--- a/pr.c
+++ b/pr.c
@@ -71,7 +71,7 @@ add_include(struct filepointer *filep, struct inclist *file,
static const char *
quoteColons(const char *input, char *outputbuffer, size_t bufsize)
{
- const char *tmp = input;
+ const char *tmp;
const char *loc;
char *output = outputbuffer;