diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-12-06 17:27:04 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2023-01-01 14:34:57 -0800 |
commit | 47f2e64d865568d4f00cb97e42ad5cfc47e9c161 (patch) | |
tree | b97928d7d27ca46f1acf0044df919abe215f567b | |
parent | d212d91dad2fdc3f30b79d90fca763659ac23307 (diff) | |
download | xorg-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |