X-Git-Url: https://git.webkit.org/?p=WebKit-https.git;a=blobdiff_plain;f=WebCore%2Floader%2FTextResourceDecoder.cpp;h=9799f9993102bf39e68408b37e60b990117f8388;hp=2a33b62d2437d625026d9cdd9905d235e48f9576;hb=6dd6f4e5db154cd978104fc1826397541e98811c;hpb=2eca72fce7a967bbdac2a17369712054971dbab7 diff --git a/WebCore/loader/TextResourceDecoder.cpp b/WebCore/loader/TextResourceDecoder.cpp index 2a33b62d2437..9799f9993102 100644 --- a/WebCore/loader/TextResourceDecoder.cpp +++ b/WebCore/loader/TextResourceDecoder.cpp @@ -481,10 +481,10 @@ bool TextResourceDecoder::checkForHeadCharset(const char* data, size_t len, bool // We stop scanning when a tag that is not permitted in // is seen, rather when is seen, because that more closely // matches behavior in other browsers; more details in - // . + // . // Additionally, we ignore things that looks like tags in ; see - // <http://bugzilla.opendarwin.org/show_bug.cgi?id=4560>. + // <http://bugs.webkit.org/show_bug.cgi?id=4560>. bool withinTitle = false; @@ -511,7 +511,7 @@ bool TextResourceDecoder::checkForHeadCharset(const char* data, size_t len, bool if (*end == '\0') break; DeprecatedCString str(ptr, end - ptr); - int len; + int len = 0; int pos = findXMLEncoding(str, len); if (pos != -1) setEncoding(TextEncoding(str.mid(pos, len)), EncodingFromXMLHeader);