diff options
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 |