diff options
author | Dirk Engling <erdgeist@erdgeist.org> | 2015-05-18 01:25:38 +0200 |
---|---|---|
committer | Dirk Engling <erdgeist@erdgeist.org> | 2015-05-18 01:25:38 +0200 |
commit | 3083552b2d9eee74f031386f90e49b9f97ae4190 (patch) | |
tree | f32e4a6cddb3e972ff0ea3335ab42ea0cce124d1 | |
parent | 8194bc916918318a6d129e0f1bfeb8ba1bac1900 (diff) |
Fix final pointer for end of file
-rw-r--r-- | el.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -99,6 +99,7 @@ static uint8_t * scanforline( EL_FILE *file, const long lineno, long *size ) { | |||
99 | // store pointer | 99 | // store pointer |
100 | if( scanline == e_o_f ) { | 100 | if( scanline == e_o_f ) { |
101 | file->all_lines_scanned = 1; | 101 | file->all_lines_scanned = 1; |
102 | file->index[file->index_filled] = e_o_f; | ||
102 | if( file->index_filled == lineno + 1 ) | 103 | if( file->index_filled == lineno + 1 ) |
103 | goto return_line; | 104 | goto return_line; |
104 | return NULL; | 105 | return NULL; |