Changeset 121752 in webkit


Ignore:
Timestamp:
Jul 3, 2012 3:04:12 AM (12 years ago)
Author:
commit-queue@webkit.org
Message:

[EFL] [WK2] Don't call eina_iterator_free() if iterator is NULL
https://bugs.webkit.org/show_bug.cgi?id=90076

Patch by Sudarsana Nagineni <sudarsana.nagineni@linux.intel.com> on 2012-07-03
Reviewed by Kenneth Rohde Christiansen.

Add a null check to prevent calling eina_iterator_free() when
iterator is NULL.

No new tests. This patch doesn't change behavior.

  • platform/efl/FileSystemEfl.cpp:

(WebCore::listDirectory): Early return when iterator is NULL.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r121751 r121752  
     12012-07-03  Sudarsana Nagineni  <sudarsana.nagineni@linux.intel.com>
     2
     3        [EFL] [WK2] Don't call eina_iterator_free() if iterator is NULL
     4        https://bugs.webkit.org/show_bug.cgi?id=90076
     5
     6        Reviewed by Kenneth Rohde Christiansen.
     7
     8        Add a null check to prevent calling eina_iterator_free() when
     9        iterator is NULL.
     10
     11        No new tests. This patch doesn't change behavior.
     12
     13        * platform/efl/FileSystemEfl.cpp:
     14        (WebCore::listDirectory): Early return when iterator is NULL.
     15
    1162012-07-03  Alexander Pavlov  <apavlov@chromium.org>
    217
  • trunk/Source/WebCore/platform/efl/FileSystemEfl.cpp

    r121467 r121752  
    9292
    9393    Eina_Iterator* it = eina_file_ls(path.utf8().data());
     94    // FIXME: Early return if the iterator is null to avoid error messages from eina_iterator_free().
     95    // This check can be removed once the magic check on _free() removed in Eina.
     96    // http://www.mail-archive.com/enlightenment-devel@lists.sourceforge.net/msg42944.html
     97    if (!it)
     98        return matchingEntries;
     99
    94100    EINA_ITERATOR_FOREACH(it, f_name) {
    95101        if (!fnmatch(cfilter.data(), f_name, 0))
Note: See TracChangeset for help on using the changeset viewer.