coverity#1349757 Unchecked return value
Change-Id: Ia2286fa9e1c351c4e4c9579b31b94ce1eac3b841
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user