1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

nsgmls: Resolve uninitialized warnings

This commit is contained in:
Peter Howkins 2021-12-22 01:13:28 +00:00 committed by Jon Trulson
parent 20e2618097
commit ef10a4924c
2 changed files with 2 additions and 2 deletions

View file

@ -53,7 +53,7 @@ Boolean Parser::parseAttributeSpec(Boolean inDecl,
text.addChars(currentInput()->currentTokenStart(),
currentInput()->currentTokenLength(),
currentLocation());
size_t nameMarkupIndex;
size_t nameMarkupIndex = 0;
if (currentMarkup())
nameMarkupIndex = currentMarkup()->size() - 1;
text.subst(*syntax().generalSubstTable(), syntax().space());

View file

@ -1993,7 +1993,7 @@ void Parser::translateRange(SdBuilder &sdBuilder, SyntaxChar start,
for (;;) {
SyntaxChar doneUpTo = end;
Boolean gotSwitch = 0;
WideChar firstSwitch;
WideChar firstSwitch = '\0';
for (size_t i = 0; i < sdBuilder.switcher.nSwitches(); i++) {
WideChar c = sdBuilder.switcher.switchFrom(i);
if (start <= c && c <= end) {