stack overflow fix
This commit is contained in:
parent
03efd90518
commit
55d5b620a4
11
src/config.c
11
src/config.c
|
@ -352,13 +352,12 @@ static void save(Config* config)
|
||||||
|
|
||||||
void initConfig(Config* config, tic_mem* tic, FileSystem* fs)
|
void initConfig(Config* config, tic_mem* tic, FileSystem* fs)
|
||||||
{
|
{
|
||||||
*config = (Config)
|
|
||||||
{
|
{
|
||||||
.tic = tic,
|
config->tic = tic;
|
||||||
.save = save,
|
config->save = save;
|
||||||
.reset = reset,
|
config->reset = reset;
|
||||||
.fs = fs,
|
config->fs = fs;
|
||||||
};
|
}
|
||||||
|
|
||||||
setDefault(config);
|
setDefault(config);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue