]> git.ipfire.org Git - people/ms/libloc.git/blobdiff - src/country.c
country: Fix SEGV when accessing the string pool
[people/ms/libloc.git] / src / country.c
index d075bd7f15274bf3cb6243638680871ef7fc5f27..6e9bfaaa98a8bdf63694a30f63eda33483793ddd 100644 (file)
@@ -137,15 +137,12 @@ int loc_country_new_from_database_v0(struct loc_ctx* ctx, struct loc_stringpool*
                goto FAIL;
 
        // Set name
-#if 0
-       // XXX Reading from the stringpool makes test-country.c fail
        const char* name = loc_stringpool_get(pool, be32toh(dbobj->name));
        if (name) {
                r = loc_country_set_name(*country, name);
                if (r)
                        goto FAIL;
        }
-#endif
 
        return 0;