nsgmls: Coverity 174584
This commit is contained in:
@@ -276,8 +276,10 @@ Boolean Parser::implySgmlDecl()
|
|||||||
else
|
else
|
||||||
spec = &coreSyntax;
|
spec = &coreSyntax;
|
||||||
CharSwitcher switcher;
|
CharSwitcher switcher;
|
||||||
if (!setStandardSyntax(*syntaxp, *spec, sd().docCharset(), switcher))
|
if (!setStandardSyntax(*syntaxp, *spec, sd().docCharset(), switcher)) {
|
||||||
|
delete syntaxp;
|
||||||
return 0;
|
return 0;
|
||||||
|
}
|
||||||
syntaxp->implySgmlChar(sd().docCharset());
|
syntaxp->implySgmlChar(sd().docCharset());
|
||||||
for (int i = 0; i < Syntax::nQuantity; i++)
|
for (int i = 0; i < Syntax::nQuantity; i++)
|
||||||
syntaxp->setQuantity(i, options().quantity[i]);
|
syntaxp->setQuantity(i, options().quantity[i]);
|
||||||
|
|||||||
Reference in New Issue
Block a user