eina: fix eina_file_iterator
authorSebastian Dransfeld <sd@tango.flipp.net>
Fri, 29 Jun 2012 20:37:33 +0000 (20:37 +0000)
committerSebastian Dransfeld <sd@tango.flipp.net>
Fri, 29 Jun 2012 20:37:33 +0000 (20:37 +0000)
Remove false check. When we reach the last line we want to return it.
This check will happen the next time we hit the next function.

SVN revision: 73054

legacy/eina/src/lib/eina_file.c

index b5dd5cd..5438aaf 100644 (file)
@@ -1190,9 +1190,6 @@ _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);