diff options
-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; |