Build fix: silence warning about use before initialization.
authorbdash <bdash@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 21 Nov 2006 07:23:02 +0000 (07:23 +0000)
committerbdash <bdash@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 21 Nov 2006 07:23:02 +0000 (07:23 +0000)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@17866 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/loader/TextResourceDecoder.cpp

index d99dd28f5625b008cb5ad996ef7d56534ea9ad06..42862c4a26df71b5a27de574b5e0ed9e34dacfcf 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);