coverity#1349757 Unchecked return value

Change-Id: Ia2286fa9e1c351c4e4c9579b31b94ce1eac3b841
This commit is contained in:
Caolán McNamara
2016-01-21 14:07:45 +00:00
parent d6d5c6057f
commit 2af991dc23
+1 -1
View File
@@ -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];