[expansion] Adding the ability to search address dictionary phrases with a NULL language, will return phrases in any language
This commit is contained in:
@@ -163,8 +163,8 @@ inline geonames_generic_t *geodb_get(char *key) {
|
||||
}
|
||||
|
||||
bool geodb_module_setup(char *dir) {
|
||||
if (db == NULL && dir != NULL) {
|
||||
return geodb_load(dir);
|
||||
if (db == NULL) {
|
||||
return geodb_load(dir == NULL ? LIBPOSTAL_GEODB_DIR : dir);
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user