summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--settings.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/settings.c b/settings.c
index f399433a5..31af159fc 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: