Changeset 18731 in webkit


Ignore:
Timestamp:
Jan 9, 2007 8:42:53 PM (17 years ago)
Author:
ddkilzer
Message:

WebCore:

Reviewed by Darin and Eric.

Fixes: http://bugs.webkit.org/show_bug.cgi?id=12150

Don't use memset to set float to 0

  • platform/graphics/svg/cg/SVGPaintServerGradientCg.cpp: (WebCore::cgGradientCallback):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r18728 r18731  
     12007-01-09  Remi Zara  <remi_zara@mac.com>
     2
     3        Reviewed by Darin and Eric.
     4
     5        Fixes: http://bugs.webkit.org/show_bug.cgi?id=12150
     6
     7        Don't use memset to set float to 0
     8
     9        * platform/graphics/svg/cg/SVGPaintServerGradientCg.cpp:
     10        (WebCore::cgGradientCallback):
     11
    1122007-01-09  Anders Carlsson  <acarlsson@apple.com>
    213
  • trunk/WebCore/platform/graphics/svg/cg/SVGPaintServerGradientCg.cpp

    r18695 r18731  
    4646
    4747    if (!stopsCount) {
    48         memset(outColor, 0, 4 * sizeof(CGFloat));
     48        outColor[0] = 0;
     49        outColor[1] = 0;
     50        outColor[2] = 0;
     51        outColor[3] = 0;
    4952        return;
    5053    } else if (stopsCount == 1) {
Note: See TracChangeset for help on using the changeset viewer.