nsgmls: Resolve uninitialized warnings
This commit is contained in:
committed by
Jon Trulson
parent
20e2618097
commit
ef10a4924c
@@ -53,7 +53,7 @@ Boolean Parser::parseAttributeSpec(Boolean inDecl,
|
|||||||
text.addChars(currentInput()->currentTokenStart(),
|
text.addChars(currentInput()->currentTokenStart(),
|
||||||
currentInput()->currentTokenLength(),
|
currentInput()->currentTokenLength(),
|
||||||
currentLocation());
|
currentLocation());
|
||||||
size_t nameMarkupIndex;
|
size_t nameMarkupIndex = 0;
|
||||||
if (currentMarkup())
|
if (currentMarkup())
|
||||||
nameMarkupIndex = currentMarkup()->size() - 1;
|
nameMarkupIndex = currentMarkup()->size() - 1;
|
||||||
text.subst(*syntax().generalSubstTable(), syntax().space());
|
text.subst(*syntax().generalSubstTable(), syntax().space());
|
||||||
|
|||||||
@@ -1993,7 +1993,7 @@ void Parser::translateRange(SdBuilder &sdBuilder, SyntaxChar start,
|
|||||||
for (;;) {
|
for (;;) {
|
||||||
SyntaxChar doneUpTo = end;
|
SyntaxChar doneUpTo = end;
|
||||||
Boolean gotSwitch = 0;
|
Boolean gotSwitch = 0;
|
||||||
WideChar firstSwitch;
|
WideChar firstSwitch = '\0';
|
||||||
for (size_t i = 0; i < sdBuilder.switcher.nSwitches(); i++) {
|
for (size_t i = 0; i < sdBuilder.switcher.nSwitches(); i++) {
|
||||||
WideChar c = sdBuilder.switcher.switchFrom(i);
|
WideChar c = sdBuilder.switcher.switchFrom(i);
|
||||||
if (start <= c && c <= end) {
|
if (start <= c && c <= end) {
|
||||||
|
|||||||
Reference in New Issue
Block a user