aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QUtil.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2017-08-10 02:46:02 +0200
committerJay Berkenbilt <ejb@ql.org>2017-08-11 03:30:32 +0200
commit3082e4e6066dde405e4f01edec4518fd9f2c3fc7 (patch)
treef1da0dc1522dd12141b9b1aa8055347c39aebf29 /libqpdf/QUtil.cc
parent90840be59448ba92974629c34ef1b844ccf6a0aa (diff)
downloadqpdf-3082e4e6066dde405e4f01edec4518fd9f2c3fc7.tar.zst
Find xref without PCRE
Diffstat (limited to 'libqpdf/QUtil.cc')
-rw-r--r--libqpdf/QUtil.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/libqpdf/QUtil.cc b/libqpdf/QUtil.cc
index 29217cc6..10ca7d3b 100644
--- a/libqpdf/QUtil.cc
+++ b/libqpdf/QUtil.cc
@@ -511,13 +511,13 @@ QUtil::srandom(unsigned int seed)
bool
QUtil::is_hex_digit(char ch)
{
- return (strchr("0123456789abcdefABCDEF", ch) != 0);
+ return (ch && (strchr("0123456789abcdefABCDEF", ch) != 0));
}
bool
QUtil::is_space(char ch)
{
- return (strchr(" \f\n\r\t\v", ch) != 0);
+ return (ch && (strchr(" \f\n\r\t\v", ch) != 0));
}
bool