Fixed segmentation error upon empty config :P

This commit is contained in:
catdotjs 2023-12-18 15:40:04 +02:00
parent 463644549b
commit 2d417a34f7
1 changed files with 2 additions and 0 deletions

View File

@ -275,6 +275,7 @@ void config_defaults()
config.asterisk = '*';
config.bg = 0;
config.bigclock = false;
config.bigclock_format = NULL;
config.blank_box = true;
config.blank_password = false;
config.clock = NULL;
@ -365,6 +366,7 @@ void lang_free()
void config_free()
{
free(config.clock);
free(config.bigclock_format);
free(config.console_dev);
free(config.lang);
free(config.mcookie_cmd);