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:
parent
62a09f6df5
commit
877d62c2cb
1 changed files with 3 additions and 1 deletions
|
@ -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]);
|
||||
|
|
Loading…
Reference in a new issue