initialise to zero

This commit is contained in:
Corwin Kuiper 2021-07-13 22:24:19 +01:00
parent 819d86cfbf
commit 87fb32dfb0

View file

@ -19,7 +19,7 @@ struct MGBA {
}; };
struct MGBA* new_runner(char* filename) { struct MGBA* new_runner(char* filename) {
struct MGBA* mgba = malloc(sizeof(struct MGBA)); struct MGBA* mgba = calloc(1, sizeof(struct MGBA));
mgba->mlogger.log = log_output; mgba->mlogger.log = log_output;
mgba->callback.callback = NULL; mgba->callback.callback = NULL;