diff --git a/extensions/webservices/schema/src/nsSchemaLoader.cpp b/extensions/webservices/schema/src/nsSchemaLoader.cpp index c3fb576946e..7722500f535 100644 --- a/extensions/webservices/schema/src/nsSchemaLoader.cpp +++ b/extensions/webservices/schema/src/nsSchemaLoader.cpp @@ -2706,6 +2706,9 @@ nsSchemaLoader::ProcessFacet(nsSchema* aSchema, else if (aTagName == nsSchemaAtoms::sFractionDigits_atom) { facetType = nsISchemaFacet::FACET_TYPE_FRACTIONDIGITS; } + else { + return NS_ERROR_UNEXPECTED; + } facetInst->SetFacetType(facetType); nsAutoString valueStr; diff --git a/extensions/xmlextras/schema/src/nsSchemaLoader.cpp b/extensions/xmlextras/schema/src/nsSchemaLoader.cpp index c3fb576946e..7722500f535 100644 --- a/extensions/xmlextras/schema/src/nsSchemaLoader.cpp +++ b/extensions/xmlextras/schema/src/nsSchemaLoader.cpp @@ -2706,6 +2706,9 @@ nsSchemaLoader::ProcessFacet(nsSchema* aSchema, else if (aTagName == nsSchemaAtoms::sFractionDigits_atom) { facetType = nsISchemaFacet::FACET_TYPE_FRACTIONDIGITS; } + else { + return NS_ERROR_UNEXPECTED; + } facetInst->SetFacetType(facetType); nsAutoString valueStr;