mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-10-31 15:20:10 +00:00
(svn r7551) -Fix (r7523): segmentation fault on showing NewGRF settings of a network game.
This commit is contained in:
parent
1805266825
commit
acb4f49de0
@ -120,9 +120,9 @@ GRFConfig **CopyGRFConfigList(GRFConfig **dst, const GRFConfig *src)
|
||||
for (; src != NULL; src = src->next) {
|
||||
c = calloc(1, sizeof(*c));
|
||||
*c = *src;
|
||||
c->filename = strdup(src->filename);
|
||||
if (src->name != NULL) c->name = strdup(src->name);
|
||||
if (src->info != NULL) c->info = strdup(src->info);
|
||||
if (src->filename != NULL) c->filename = strdup(src->filename);
|
||||
if (src->name != NULL) c->name = strdup(src->name);
|
||||
if (src->info != NULL) c->info = strdup(src->info);
|
||||
|
||||
*dst = c;
|
||||
dst = &c->next;
|
||||
|
Loading…
Reference in New Issue
Block a user