mirror of
https://github.com/kiwix/kiwix-tools.git
synced 2025-09-22 03:12:20 -04:00
Merge pull request #253 from kiwix/fix_warning
Initialize geoquery variables.
This commit is contained in:
commit
9ed3fc353b
@ -538,9 +538,9 @@ static struct MHD_Response* handle_search(RequestContext* request)
|
|||||||
|
|
||||||
/* Retrive geo search */
|
/* Retrive geo search */
|
||||||
bool has_geo_query = false;
|
bool has_geo_query = false;
|
||||||
float latitude;
|
float latitude = 0;
|
||||||
float longitude;
|
float longitude = 0;
|
||||||
float distance;
|
float distance = 0;
|
||||||
try {
|
try {
|
||||||
latitude = request->get_argument<float>("latitude");
|
latitude = request->get_argument<float>("latitude");
|
||||||
longitude = request->get_argument<float>("longitude");
|
longitude = request->get_argument<float>("longitude");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user