Revert "eina: fix eina_file_iterator"
authorenglebass <englebass>
Fri, 29 Jun 2012 20:47:55 +0000 (20:47 +0000)
committerenglebass <englebass@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 29 Jun 2012 20:47:55 +0000 (20:47 +0000)
This reverts commit 375d652df6430e08874412650e6f8aecfcbdca51.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@73056 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

ChangeLog
src/lib/eina_file.c

index 8862ec1..22d070f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
         passthrough to malloc for debgging purposes and memory footrpint
         comparisons at runtime.
 
-2012-06-29 Sebastian Dransfeld
-
-       * Fix eina_file_map_lines. The function would not return the last line
-       of a file.
index 5438aaf..b5dd5cd 100644 (file)
@@ -1190,6 +1190,9 @@ _eina_file_map_lines_iterator_next(Eina_Lines_Iterator *it, void **data)
      }
    it->current.line.index++;
 
+   if (it->current.line.end == it->end)
+     return EINA_FALSE;
+
    eol = _eina_fine_eol(it->current.line.end,
                         it->boundary,
                         it->end);