mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r1605) Remove redundant if
This commit is contained in:
parent
322bd934be
commit
fd25a53d1b
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user