mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 16:21:33 +11:00
initialise to zero
This commit is contained in:
parent
819d86cfbf
commit
87fb32dfb0
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue