Changeset 94869 in webkit


Ignore:
Timestamp:
Sep 9, 2011 11:37:05 AM (13 years ago)
Author:
adamk@chromium.org
Message:

Initialize ExceptionCode in Element::removeAttribute
https://bugs.webkit.org/show_bug.cgi?id=67820

Reviewed by Darin Adler.

Silences valgrind warning reported in http://crbug.com/76490.

No new tests since this would only very occasionally be flaky,
and in the codepath in the valgrind report, the ec is ignored anyway.

  • dom/Element.cpp:

(WebCore::Element::removeAttribute): Initialize ec to 0.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r94866 r94869  
     12011-09-09  Adam Klein  <adamk@chromium.org>
     2
     3        Initialize ExceptionCode in Element::removeAttribute
     4        https://bugs.webkit.org/show_bug.cgi?id=67820
     5
     6        Reviewed by Darin Adler.
     7
     8        Silences valgrind warning reported in http://crbug.com/76490.
     9
     10        No new tests since this would only very occasionally be flaky,
     11        and in the codepath in the valgrind report, the ec is ignored anyway.
     12
     13        * dom/Element.cpp:
     14        (WebCore::Element::removeAttribute): Initialize ec to 0.
     15
    1162011-09-09  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
    217
  • trunk/Source/WebCore/dom/Element.cpp

    r94659 r94869  
    15211521
    15221522    if (m_attributeMap) {
     1523        ec = 0;
    15231524        m_attributeMap->removeNamedItem(localName, ec);
    15241525        if (ec == NOT_FOUND_ERR)
Note: See TracChangeset for help on using the changeset viewer.