diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-09-16 15:50:53 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-09-16 16:22:37 -0700 |
commit | c0fb322b8d53e3f9fdffbba8c733c78ff3d50c85 (patch) | |
tree | 3220ada60a8f1fbf433fc51708dad1e5d5c90db3 | |
parent | d3e6a823537bb451be60febb6bfc769135fe5b35 (diff) |
Remove redundant null-pointer check
As warned by cppcheck:
bdfread.c:130:18: style: Condition '!line' is always false [knownConditionTrueFalse]
if ((!line) || (bdfIsPrefix(line, "ENDCHAR")))
^
bdfread.c:126:13: note: Assuming condition '!line' is false
if (!line)
^
bdfread.c:130:18: note: Condition '!line' is always false
if ((!line) || (bdfIsPrefix(line, "ENDCHAR")))
^
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | bdfread.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -127,7 +127,7 @@ bdfReadBitmap(CharInfoPtr pCI, FontFilePtr file, int bit, int byte, break; if (widthBits == 0) { - if ((!line) || (bdfIsPrefix(line, "ENDCHAR"))) + if (bdfIsPrefix(line, "ENDCHAR")) break; else continue; |