summaryrefslogtreecommitdiff
path: root/hwpfilter/source/hwpfile.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'hwpfilter/source/hwpfile.cxx')
-rw-r--r--hwpfilter/source/hwpfile.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/hwpfilter/source/hwpfile.cxx b/hwpfilter/source/hwpfile.cxx
index 223b4bb7a984..258ea9370ef5 100644
--- a/hwpfilter/source/hwpfile.cxx
+++ b/hwpfilter/source/hwpfile.cxx
@@ -119,9 +119,7 @@ int HWPFile::SetState(int errcode)
bool HWPFile::Read1b(unsigned char &out)
{
- if (!hiodev || !hiodev->read1b(out))
- return false;
- return true;
+ return hiodev && hiodev->read1b(out);
}
bool HWPFile::Read1b(char &out)