mirror of https://github.com/Nonannet/copapy.git
initialized runmem_t struct with zeros for coparun executable
This commit is contained in:
parent
a07332f3a4
commit
51c7322742
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue