Changeset 109175 in webkit


Ignore:
Timestamp:
Feb 28, 2012 5:28:06 PM (12 years ago)
Author:
bashi@chromium.org
Message:

[Chromium] Uninitialized value in LocaleToScriptCodeForFontSelection
https://bugs.webkit.org/show_bug.cgi?id=79779

Set USCRIPT_COMMON to scriptCode as the initial value.

Reviewed by Kent Tamura.

No new tests. No behavior change.

  • platform/text/LocaleToScriptMappingICU.cpp:

(WebCore::localeToScriptCodeForFontSelection):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r109173 r109175  
     12012-02-28  Kenichi Ishibashi  <bashi@chromium.org>
     2
     3        [Chromium] Uninitialized value in LocaleToScriptCodeForFontSelection
     4        https://bugs.webkit.org/show_bug.cgi?id=79779
     5
     6        Set USCRIPT_COMMON to scriptCode as the initial value.
     7
     8        Reviewed by Kent Tamura.
     9
     10        No new tests. No behavior change.
     11
     12        * platform/text/LocaleToScriptMappingICU.cpp:
     13        (WebCore::localeToScriptCodeForFontSelection):
     14
    1152012-02-28  Kenneth Russell  <kbr@google.com>
    216
  • trunk/Source/WebCore/platform/text/LocaleToScriptMappingICU.cpp

    r95901 r109175  
    6969        return USCRIPT_COMMON;
    7070
    71     UScriptCode scriptCode;
     71    UScriptCode scriptCode = USCRIPT_COMMON;
    7272    uscript_getCode(script, &scriptCode, 1, &status);
    7373    // Ignore error that multiple scripts could be returned, since we only want one script.
Note: See TracChangeset for help on using the changeset viewer.