[EFL] [WK2] Don't call eina_iterator_free() if iterator is NULL
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 3 Jul 2012 10:04:12 +0000 (10:04 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 3 Jul 2012 10:04:12 +0000 (10:04 +0000)
commit09ddbe612e742388d8a906f02af87eab07274e40
tree78023a8cfc3d68d901fa2c62894d80b267798528
parent838e854a2d24ead5cf2e03ea1d5836817d80befa
[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.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@121752 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/platform/efl/FileSystemEfl.cpp