Changeset 48929 in webkit


Ignore:
Timestamp:
Sep 30, 2009 8:35:10 AM (15 years ago)
Author:
eric@webkit.org
Message:

2009-09-30 Andras Becsi <becsi.andras@stud.u-szeged.hu>

Reviewed by Simon Hausmann.

[Qt] Fix TextCodecQt::decode method after r48752 to return a non-null string if the length of the input is 0.
This fixes https://bugs.webkit.org/show_bug.cgi?id=29736.

  • platform/text/qt/TextCodecQt.cpp: (WebCore::TextCodecQt::decode):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r48919 r48929  
     12009-09-30  Andras Becsi  <becsi.andras@stud.u-szeged.hu>
     2
     3        Reviewed by Simon Hausmann.
     4
     5        [Qt] Fix TextCodecQt::decode method after r48752 to return a non-null string if the length of the input is 0.
     6        This fixes https://bugs.webkit.org/show_bug.cgi?id=29736.
     7
     8        * platform/text/qt/TextCodecQt.cpp:
     9        (WebCore::TextCodecQt::decode):
     10
    1112009-09-29  Dave Hyatt  <hyatt@apple.com>
    212
  • trunk/WebCore/platform/text/qt/TextCodecQt.cpp

    r48752 r48929  
    105105    const char* buf = bytes;
    106106    const char* end = buf + length;
    107     String unicode;
     107    String unicode(""); // a non-null string is expected
    108108
    109109    while (buf < end) {
Note: See TracChangeset for help on using the changeset viewer.