summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-01-23 10:47:15 +0000
committertron <tron@openttd.org>2005-01-23 10:47:15 +0000
commitfd25a53d1be1d324fab3fb7c1cd7aba96c1e5f96 (patch)
tree884a0370f5268a5dd02667377fc8b778af198ba0
parent322bd934be9ee7be7b25de4dc3deab68fdb9a8e4 (diff)
downloadopenttd-fd25a53d1be1d324fab3fb7c1cd7aba96c1e5f96.tar.xz
(svn r1605) Remove redundant if
-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: