summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-09-16 15:46:57 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-09-16 16:22:31 -0700
commitd3e6a823537bb451be60febb6bfc769135fe5b35 (patch)
tree794dd2cc4c5f80b69d2560bea22db696c0671ae5
parentfa8eed6deefbb96d9d3e2af1b23b9fff193bda92 (diff)
Remove redundant assignment
As warned by cppcheck: bdfutils.c:164:17: style: Variable 'pp' is reassigned a value before the old one has been used. [redundantAssignment] for (pp = s; *pp; pp++) ^ bdfutils.c:162:12: note: pp is assigned pp = s; ^ bdfutils.c:164:17: note: pp is overwritten for (pp = s; *pp; pp++) ^ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--bdfutils.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/bdfutils.c b/bdfutils.c
index 9a81b99..af77ce9 100644
--- a/bdfutils.c
+++ b/bdfutils.c
@@ -159,7 +159,6 @@ bdfGetPropertyValue(char *s)
return bdfForceMakeAtom(s, NULL);
}
if (*s != '"') {
- pp = s;
/* no white space in value */
for (pp = s; *pp; pp++)
if (*pp == ' ' || *pp == '\t' || *pp == '\015' || *pp == '\n') {