From 26493121bf3e97d5c63e2f4a9b8132538a6eb82a Mon Sep 17 00:00:00 2001 From: gyboth Date: Sat, 24 Mar 2007 19:11:39 +0000 Subject: [PATCH] g_strrstr bug related to void country sid fixed. --- src/free.c | 3 +++ src/main.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/free.c b/src/free.c index dd768e73..b46cf83a 100644 --- a/src/free.c +++ b/src/free.c @@ -287,7 +287,10 @@ free_country(Country *cntry, gboolean reset) free_g_ptr_array(&cntry->allcups); if(reset) + { cntry->allcups = g_ptr_array_new(); + cntry->sid = g_strdup("NONAME"); + } } /** diff --git a/src/main.c b/src/main.c index 299e853c..8ad2341a 100644 --- a/src/main.c +++ b/src/main.c @@ -174,7 +174,7 @@ main_init_variables(void) acps = g_ptr_array_new(); country.name = NULL; country.symbol = NULL; - country.sid = NULL;; + country.sid = g_strdup("NONAME"); season = week = week_round = 1;