diff options
author | Jay Berkenbilt <ejb@ql.org> | 2017-08-10 02:46:02 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2017-08-11 03:30:32 +0200 |
commit | 3082e4e6066dde405e4f01edec4518fd9f2c3fc7 (patch) | |
tree | f1da0dc1522dd12141b9b1aa8055347c39aebf29 /libqpdf/QUtil.cc | |
parent | 90840be59448ba92974629c34ef1b844ccf6a0aa (diff) | |
download | qpdf-3082e4e6066dde405e4f01edec4518fd9f2c3fc7.tar.zst |
Find xref without PCRE
Diffstat (limited to 'libqpdf/QUtil.cc')
-rw-r--r-- | libqpdf/QUtil.cc | 4 |
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 |