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 */
|
||||
bool has_geo_query = false;
|
||||
float latitude;
|
||||
float longitude;
|
||||
float distance;
|
||||
float latitude = 0;
|
||||
float longitude = 0;
|
||||
float distance = 0;
|
||||
try {
|
||||
latitude = request->get_argument<float>("latitude");
|
||||
longitude = request->get_argument<float>("longitude");
|
||||
|
Loading…
x
Reference in New Issue
Block a user