Changeset 150513 in webkit


Ignore:
Timestamp:
May 22, 2013, 6:45:15 AM (12 years ago)
Author:
Hugo Parente Lima
Message:

WebCore fails to compile with -Werror=maybe-uninitialized on GCC 4.8.0
https://bugs.webkit.org/show_bug.cgi?id=116340

Reviewed by Christophe Dumez.

No new tests, just a simple build fix.

  • inspector/InspectorDOMStorageAgent.cpp:

(WebCore::InspectorDOMStorageAgent::setDOMStorageItem): Init frame variable.
(WebCore::InspectorDOMStorageAgent::removeDOMStorageItem): Init frame variable.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r150509 r150513  
     12013-05-22  Hugo Parente Lima  <hugo.lima@openbossa.org>
     2
     3        WebCore fails to compile with -Werror=maybe-uninitialized on GCC 4.8.0
     4        https://bugs.webkit.org/show_bug.cgi?id=116340
     5
     6        Reviewed by Christophe Dumez.
     7
     8        No new tests, just a simple build fix.
     9
     10        * inspector/InspectorDOMStorageAgent.cpp:
     11        (WebCore::InspectorDOMStorageAgent::setDOMStorageItem): Init frame variable.
     12        (WebCore::InspectorDOMStorageAgent::removeDOMStorageItem): Init frame variable.
     13
    1142013-05-22  Christophe Dumez  <ch.dumez@sisa.samsung.com>
    215
  • trunk/Source/WebCore/inspector/InspectorDOMStorageAgent.cpp

    r150346 r150513  
    199199        if (errorString)
    200200            *errorString = "Invalid storageId format";
     201        targetFrame = 0;
    201202        return 0;
    202203    }
    203204
    204     Frame* frame = m_pageAgent->findFrameWithSecurityOrigin(securityOrigin);
    205     if (!frame) {
     205    targetFrame = m_pageAgent->findFrameWithSecurityOrigin(securityOrigin);
     206    if (!targetFrame) {
    206207        if (errorString)
    207208            *errorString = "Frame not found for the given security origin";
    208209        return 0;
    209210    }
    210     targetFrame = frame;
    211211
    212212    Page* page = m_pageAgent->page();
    213213    if (isLocalStorage)
    214         return page->group().localStorage()->storageArea(frame->document()->securityOrigin());
    215     return page->sessionStorage()->storageArea(frame->document()->securityOrigin());
     214        return page->group().localStorage()->storageArea(targetFrame->document()->securityOrigin());
     215    return page->sessionStorage()->storageArea(targetFrame->document()->securityOrigin());
    216216}
    217217
Note: See TracChangeset for help on using the changeset viewer.