]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commit
location-functions.pl: Remove accidently keept 2nd DB init call.
authorStefan Schantl <stefan.schantl@ipfire.org>
Wed, 2 Dec 2020 14:04:08 +0000 (15:04 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 2 Dec 2020 14:16:54 +0000 (14:16 +0000)
commitaa9dd5386cfac0ea069c4f6d51628e3d7ea56458
tree05b2e80eb2a9d2afcc3a2ba0636d653aee82f2c4
parent460741fd148107b5e189d5649009c4ab36007855
location-functions.pl: Remove accidently keept 2nd DB init call.

The get_full_country_name() function had an accidenlty and not longer
required call of the DB init function.

This is a waste of memory and a known problem, especially on systems
with less than 1GB of RAM, where the application which uses libloc in
such a redundant way crashes.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/cfgroot/location-functions.pl