diff options
Diffstat (limited to 'src/trg-peers-model.c')
-rw-r--r-- | src/trg-peers-model.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/trg-peers-model.c b/src/trg-peers-model.c index 980e2a0..3c81f95 100644 --- a/src/trg-peers-model.c +++ b/src/trg-peers-model.c @@ -250,22 +250,22 @@ static void trg_peers_model_init(TrgPeersModel * self) #ifdef HAVE_GEOIP #ifdef WIN32 geoip_db_path = trg_win32_support_path("GeoIP.dat"); - geoip_v6_db_path = trg_win32_support_path("GeoIPv6.dat"); + geoip_v6_db_path = trg_win32_support_path("GeoIPv6.dat"); #else geoip_db_path = g_strdup(TRG_GEOIP_DATABASE); - geoip_v6_db_path = g_strdup(TRG_GEOIPV6_DATABASE); + geoip_v6_db_path = g_strdup(TRG_GEOIPV6_DATABASE); #endif if (g_file_test(geoip_db_path, G_FILE_TEST_EXISTS) == TRUE) priv->geoip = GeoIP_open(geoip_db_path, GEOIP_STANDARD | GEOIP_CHECK_CACHE); - + if (g_file_test(geoip_v6_db_path, G_FILE_TEST_EXISTS) == TRUE) priv->geoipv6 = GeoIP_open(geoip_v6_db_path, GEOIP_STANDARD | GEOIP_CHECK_CACHE); - - g_free(geoip_db_path); - g_free(geoip_v6_db_path); + + g_free(geoip_db_path); + g_free(geoip_v6_db_path); #endif } |