diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-09-16 15:46:57 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-09-16 16:22:31 -0700 |
commit | d3e6a823537bb451be60febb6bfc769135fe5b35 (patch) | |
tree | 794dd2cc4c5f80b69d2560bea22db696c0671ae5 | |
parent | fa8eed6deefbb96d9d3e2af1b23b9fff193bda92 (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.c | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -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') { |