summaryrefslogtreecommitdiff
path: root/hwpfilter
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-12-19 10:40:36 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-12-19 11:31:11 +0000
commit9398d4256b9886a849654cbb4f3ec960ceeb441d (patch)
treebca312a40c094ca3b3ebb73a890a43801604c153 /hwpfilter
parentec79f9777676dc331976719c27702ca4a535ea1d (diff)
CID#982601 using invalid iterator
Change-Id: Id5813c4353828db76f03ea885247a08d92226088
Diffstat (limited to 'hwpfilter')
-rw-r--r--hwpfilter/source/hwpfile.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/hwpfilter/source/hwpfile.cxx b/hwpfilter/source/hwpfile.cxx
index 0082693f7b16..b1bf470d487d 100644
--- a/hwpfilter/source/hwpfile.cxx
+++ b/hwpfilter/source/hwpfile.cxx
@@ -493,7 +493,7 @@ DateCode *HWPFile::getDateCode(int index)
break;
}
- return *it;
+ return it != datecodes.end() ? *it : NULL;
}
HeaderFooter *HWPFile::getHeaderFooter(int index)