From a597733a019b56ee06b756a4dda867435a681721 Mon Sep 17 00:00:00 2001 From: Eric Fischer Date: Mon, 11 Jan 2016 11:00:23 -0800 Subject: [PATCH] Fix the build --- geojson.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/geojson.c b/geojson.c index 727eae9..41a532b 100644 --- a/geojson.c +++ b/geojson.c @@ -1827,7 +1827,9 @@ int read_json(int argc, char **argv, char *fname, const char *layername, int max } int int_in(int v, int *a, int len) { - for (int i = 0; i < len; i++) { + int i; + + for (i = 0; i < len; i++) { if (a[i] == v) { return 1; }