Changeset 60529 in webkit


Ignore:
Timestamp:
Jun 1, 2010 8:03:37 PM (14 years ago)
Author:
eric@webkit.org
Message:

2010-06-01 Laszlo Gombos <Laszlo Gombos>

Reviewed by Kenneth Rohde Christiansen.

Fix "variable may be used before being set" warning in TextResourceDecoder::checkForHeadCharset
https://bugs.webkit.org/show_bug.cgi?id=40001

No new tests as there is no new functionality.

Initialize len to 0 just to eliminate the compiler warning.

  • loader/TextResourceDecoder.cpp: (WebCore::TextResourceDecoder::checkForHeadCharset):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r60528 r60529  
     12010-06-01  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
     2
     3        Reviewed by Kenneth Rohde Christiansen.
     4
     5        Fix "variable may be used before being set" warning in TextResourceDecoder::checkForHeadCharset
     6        https://bugs.webkit.org/show_bug.cgi?id=40001
     7
     8        No new tests as there is no new functionality.
     9
     10        Initialize len to 0 just to eliminate the compiler warning.
     11
     12        * loader/TextResourceDecoder.cpp:
     13        (WebCore::TextResourceDecoder::checkForHeadCharset):
     14
    1152010-06-01  Ilya Tikhonovsky  <loislo@chromium.org>
    216
  • trunk/WebCore/loader/TextResourceDecoder.cpp

    r47950 r60529  
    569569            return false;
    570570        // No need for +1, because we have an extra "?" to lose at the end of XML declaration.
    571         int len;
     571        int len = 0;
    572572        int pos = findXMLEncoding(ptr, xmlDeclarationEnd - ptr, len);
    573573        if (pos != -1)
Note: See TracChangeset for help on using the changeset viewer.