Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorMWM Planet Generator cdn3 <osm@cdn3.mapswithme.com>2015-10-22 00:23:51 +0300
committerMWM Planet Generator cdn3 <osm@cdn3.mapswithme.com>2015-10-22 00:23:51 +0300
commit23d9c80ff3fcf46799925c592c17a1e1a5b2486f (patch)
treea438c5a05008dd767e0179146ba72e92495913d8 /api
parentaa9a51afd2dcc6d5b3166d2876a2dc7845618600 (diff)
[linux] Fixed project build with g++ 4.8.
Diffstat (limited to 'api')
-rw-r--r--api/src/c/api-client.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/api/src/c/api-client.c b/api/src/c/api-client.c
index 322becc5e1..ef748a9ece 100644
--- a/api/src/c/api-client.c
+++ b/api/src/c/api-client.c
@@ -92,9 +92,11 @@ void MapsWithMe_TransformName(char * s)
// See rfc3986, rfc1738, rfc2396.
size_t MapsWithMe_UrlEncodeString(char const * s, size_t size, char ** res)
{
+ size_t i;
+ char * out;
*res = malloc(size * 3 + 1);
- char * out = *res;
- for (size_t i = 0; i < size; ++i)
+ out = *res;
+ for (i = 0; i < size; ++i)
{
unsigned char c = (unsigned char)(s[i]);
switch (c)