Rolling out r17865 because it caused a performance regression.
[WebKit-https.git] / WebCore / loader / TextResourceDecoder.cpp
index 43f5bed532b029f32aa4f347dbdb2c5598bbbdf4..9799f9993102bf39e68408b37e60b990117f8388 100644 (file)
@@ -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);