This commit is contained in:
nisheeth%netscape.com 1999-09-20 21:35:50 +00:00
Родитель 69ad795985
Коммит cdf47730e3
3 изменённых файлов: 7 добавлений и 7 удалений

Просмотреть файл

@ -2066,14 +2066,14 @@ processXmlDecl(XML_Parser parser, int isGeneralTextEntity,
} }
else if (encodingName) { else if (encodingName) {
enum XML_Error result; enum XML_Error result;
const XML_Char *s = poolStoreString(&tempPool, const XML_Char *str = poolStoreString(&tempPool,
encoding, encoding,
encodingName, encodingName,
encodingName encodingName
+ XmlNameLength(encoding, encodingName)); + XmlNameLength(encoding, encodingName));
if (!s) if (!str)
return XML_ERROR_NO_MEMORY; return XML_ERROR_NO_MEMORY;
result = handleUnknownEncoding(parser, s); result = handleUnknownEncoding(parser, str);
poolDiscard(&tempPool); poolDiscard(&tempPool);
if (result == XML_ERROR_UNKNOWN_ENCODING) if (result == XML_ERROR_UNKNOWN_ENCODING)
eventPtr = encodingName; eventPtr = encodingName;

Просмотреть файл

@ -278,7 +278,7 @@ nsXMLDocumentType::List(FILE* out, PRInt32 aIndent) const
PRInt32 index; PRInt32 index;
for (index = aIndent; --index >= 0; ) fputs(" ", out); for (index = aIndent; --index >= 0; ) fputs(" ", out);
fprintf(out, "Document type...\n", mRefCnt); fprintf(out, "Document type refcount: %d\n", mRefCnt);
return NS_OK; return NS_OK;
} }

Просмотреть файл

@ -2066,14 +2066,14 @@ processXmlDecl(XML_Parser parser, int isGeneralTextEntity,
} }
else if (encodingName) { else if (encodingName) {
enum XML_Error result; enum XML_Error result;
const XML_Char *s = poolStoreString(&tempPool, const XML_Char *str = poolStoreString(&tempPool,
encoding, encoding,
encodingName, encodingName,
encodingName encodingName
+ XmlNameLength(encoding, encodingName)); + XmlNameLength(encoding, encodingName));
if (!s) if (!str)
return XML_ERROR_NO_MEMORY; return XML_ERROR_NO_MEMORY;
result = handleUnknownEncoding(parser, s); result = handleUnknownEncoding(parser, str);
poolDiscard(&tempPool); poolDiscard(&tempPool);
if (result == XML_ERROR_UNKNOWN_ENCODING) if (result == XML_ERROR_UNKNOWN_ENCODING)
eventPtr = encodingName; eventPtr = encodingName;