[Libreoffice-commits] core.git: hwpfilter/source
Caolán McNamara
caolanm at redhat.com
Thu Jan 21 06:08:20 PST 2016
hwpfilter/source/hfont.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 2af991dc232bbf96557dc5efe5bd2ce9b6b99f9b
Author: Caolán McNamara <caolanm at redhat.com>
Date: Thu Jan 21 14:05:53 2016 +0000
coverity#1349757 Unchecked return value
Change-Id: Ia2286fa9e1c351c4e4c9579b31b94ce1eac3b841
diff --git a/hwpfilter/source/hfont.cxx b/hwpfilter/source/hfont.cxx
index a16905c..70e3942 100644
--- a/hwpfilter/source/hfont.cxx
+++ b/hwpfilter/source/hfont.cxx
@@ -80,7 +80,7 @@ void HWPFont::Read(HWPFile & hwpf)
hwpf.Read2b(&nfonts, 1);
if (!(nfonts > 0 && nfonts < MAXFONTS))
{
- hwpf.SetState(HWP_InvalidFileFormat);
+ (void)hwpf.SetState(HWP_InvalidFileFormat);
return;
}
fontnames[lang] = new char[nfonts * FONTNAMELEN];
More information about the Libreoffice-commits
mailing list