Fix mmap read offset not being initialized

This commit is contained in:
ISSOtm
2020-07-28 21:50:43 +02:00
parent e56c6cc291
commit 2ec10012b6

View File

@@ -324,6 +324,7 @@ struct LexerState *lexer_OpenFile(char const *path)
state->isMmapped = true;
state->ptr = pa;
state->size = size;
state->offset = 0;
if (verbose)
printf("File %s successfully mmap()ped\n", path);