diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-12-19 11:00:11 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-12-19 11:31:12 +0000 |
commit | 80592d9786881e650413c4669ab1b0abb78d5f10 (patch) | |
tree | 124842a75057999099ba47b1bbc5d7fa1cb1349b /hwpfilter | |
parent | 8070d5666177ee2262b54247e5d164128d606c3b (diff) |
CID#982606 using invalid iterator
Change-Id: Ic0f186bed177de1ed35072cef864e2079da48cd3
Diffstat (limited to 'hwpfilter')
-rw-r--r-- | hwpfilter/source/hwpfile.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hwpfilter/source/hwpfile.cxx b/hwpfilter/source/hwpfile.cxx index 1a7940db9573..48d2f37d66e8 100644 --- a/hwpfilter/source/hwpfile.cxx +++ b/hwpfilter/source/hwpfile.cxx @@ -517,7 +517,7 @@ ShowPageNum *HWPFile::getPageNumber(int index) break; } - return *it; + return it != pagenumbers.end() ? *it : NULL; } |