From a6c3db8ceef32a04bb7c06ffa00eb8edf0a63313 Mon Sep 17 00:00:00 2001 From: Jan-Piet Mens Date: Wed, 16 Sep 2015 08:47:15 +0200 Subject: [PATCH] rename --- http.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/http.c b/http.c index 6d14bfc..207ba2f 100644 --- a/http.c +++ b/http.c @@ -382,11 +382,11 @@ static int dispatch(struct mg_connection *conn, const char *uri) if (otype == JSON) { return (json_response(conn, obj)); } else if (otype == LINESTRING) { - JsonNode *geolinestring = geo_linestring(locs); + JsonNode *geoline = geo_linestring(locs); - if (geolinestring != NULL) { + if (geoline != NULL) { json_delete(obj); - return (json_response(conn, geolinestring)); + return (json_response(conn, geoline)); } } else if (otype == GEOJSON) {