diff options
author | Sebastian Dransfeld <sd@tango.flipp.net> | 2012-06-29 20:47:55 +0000 |
---|---|---|
committer | Sebastian Dransfeld <sd@tango.flipp.net> | 2012-06-29 20:47:55 +0000 |
commit | 68dbddf9c8d2df2ff8aa4b187fc5e0a3843dd3a3 (patch) | |
tree | 34aab70e3f70366c6f6be3e358ecc21dda1f3dca | |
parent | ce8a2dcfcacf4a5089251050884d338ea7434e79 (diff) | |
download | eina-68dbddf9c8d2df2ff8aa4b187fc5e0a3843dd3a3.tar.gz |
Revert "eina: fix eina_file_iterator"
This reverts commit 375d652df6430e08874412650e6f8aecfcbdca51.
SVN revision: 73056
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | src/lib/eina_file.c | 3 |
2 files changed, 3 insertions, 4 deletions
@@ -303,7 +303,3 @@ 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. diff --git a/src/lib/eina_file.c b/src/lib/eina_file.c index 5438aaf..b5dd5cd 100644 --- a/src/lib/eina_file.c +++ b/src/lib/eina_file.c @@ -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); |