shithub: rgbds

Download patch

ref: c29b616f937f975f87f4ba6613146fd4c339f89c
parent: 39c179aa325a9112d9cc3329fab96f1443e646d2
author: ISSOtm <eldredhabert0@gmail.com>
date: Thu Feb 18 11:33:06 EST 2021

Fix forgotten initialization of `lexerState->isReferenced`

--- a/src/asm/lexer.c
+++ b/src/asm/lexer.c
@@ -423,6 +423,7 @@
 			close(state->fd);
 
 			state->isMmapped = true;
+			state->isReferenced = false; // By default, a state isn't referenced
 			state->ptr = mappingAddr;
 			state->size = fileInfo.st_size;
 			state->offset = 0;