(svn r7551) -Fix (r7523): segmentation fault on showing NewGRF settings of a network game.

pull/155/head
rubidium 18 years ago
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…
Cancel
Save