From acb4f49de02e7f77494c7d6b8e5a7f67f17b504e Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 23 Dec 2006 09:06:37 +0000 Subject: (svn r7551) -Fix (r7523): segmentation fault on showing NewGRF settings of a network game. --- newgrf_config.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/newgrf_config.c b/newgrf_config.c index b70c8354f..6b74c99b2 100644 --- a/newgrf_config.c +++ b/newgrf_config.c @@ -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; -- cgit v1.2.3-70-g09d2