initialized runmem_t struct with zeros for coparun executable

This commit is contained in:
Nicolas Kruse 2025-12-19 21:41:59 +01:00
parent a07332f3a4
commit 51c7322742
1 changed files with 7 additions and 0 deletions

View File

@ -46,6 +46,13 @@ int main(int argc, char *argv[]) {
}
runmem_t targ;
targ.executable_memory_len = 0;
targ.data_memory_len = 0;
targ.executable_memory = NULL;
targ.data_memory = NULL;
targ.entr_point = NULL;
targ.data_offs = 0;
int ret = parse_commands(&targ, file_buff);
if (ret == 2) {