summaryrefslogtreecommitdiff
path: root/hwpfilter
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-12-19 10:59:37 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-12-19 11:31:12 +0000
commit8070d5666177ee2262b54247e5d164128d606c3b (patch)
tree41fd635870eca82c0627bf397aad14dce31b9f56 /hwpfilter
parentf21ed26fc57251dacfcd9b0518f24e539aa1ce26 (diff)
CID#982605 using invalid iterator
Change-Id: Ia2413a7040124b0c27ca7a3dbaaa5f222395aba8
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 04c72cb7b9d2..1a7940db9573 100644
--- a/hwpfilter/source/hwpfile.cxx
+++ b/hwpfilter/source/hwpfile.cxx
@@ -455,7 +455,7 @@ ParaShape *HWPFile::getParaShape(int index)
break;
}
- return *it;
+ return it != pslist.end() ? *it : NULL;
}