diff --git a/settings.c b/settings.c index f399433a50..31af159fc8 100644 --- a/settings.c +++ b/settings.c @@ -574,7 +574,7 @@ static void load_setting_desc(IniFile *ini, const SettingDesc *desc, const void } break; case SDT_STRING: - if (*(char**)ptr) free(*(char**)ptr); + free(*(char**)ptr); *(char**)ptr = strdup((const char*)p); break; case SDT_STRINGBUF: