mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Fix forgotten initialization of lexerState->isReferenced
This commit is contained in:
@@ -423,6 +423,7 @@ struct LexerState *lexer_OpenFile(char const *path)
|
|||||||
close(state->fd);
|
close(state->fd);
|
||||||
|
|
||||||
state->isMmapped = true;
|
state->isMmapped = true;
|
||||||
|
state->isReferenced = false; // By default, a state isn't referenced
|
||||||
state->ptr = mappingAddr;
|
state->ptr = mappingAddr;
|
||||||
state->size = fileInfo.st_size;
|
state->size = fileInfo.st_size;
|
||||||
state->offset = 0;
|
state->offset = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user