1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-15 04:32:24 +00:00

nsgmls: Coverity 174584

This commit is contained in:
Peter Howkins 2018-07-03 18:14:53 +01:00
parent 62a09f6df5
commit 877d62c2cb

View file

@ -276,8 +276,10 @@ Boolean Parser::implySgmlDecl()
else
spec = &coreSyntax;
CharSwitcher switcher;
if (!setStandardSyntax(*syntaxp, *spec, sd().docCharset(), switcher))
if (!setStandardSyntax(*syntaxp, *spec, sd().docCharset(), switcher)) {
delete syntaxp;
return 0;
}
syntaxp->implySgmlChar(sd().docCharset());
for (int i = 0; i < Syntax::nQuantity; i++)
syntaxp->setQuantity(i, options().quantity[i]);