Clean ‘geolocation_plugin.c:260:23: warning: initialization discards 'const' qualifie...
[claws.git] / src / plugins / geolocation / geolocation_plugin.c
index 0860fc3656707de11b1466e5d8e984e9e93ec037..c70d5b9f89de15c23205a0b29bef94cb5e674707 100644 (file)
@@ -257,7 +257,7 @@ static const gchar* get_country_from_ip(const gchar *ip)
   g_free(uri);
 
   if(soup_address_resolve_sync(addr, NULL) == SOUP_STATUS_OK) {
-    gchar *physical = soup_address_get_physical(addr);
+    const gchar *physical = soup_address_get_physical(addr);
     val = g_hash_table_lookup(iso_country_hash, physical);
   }