]> 4ch.mooo.com Git - 16.git/commitdiff
modified: src/lib/jsmn/example/MAPTEST.EXE
authorsparky4 <sparky4@cock.li>
Sun, 22 Mar 2015 17:01:24 +0000 (12:01 -0500)
committersparky4 <sparky4@cock.li>
Sun, 22 Mar 2015 17:01:24 +0000 (12:01 -0500)
modified:   src/lib/jsmn/example/maptest.c

src/lib/jsmn/example/MAPTEST.EXE
src/lib/jsmn/example/maptest.c

index 697c8c9e15fff509eb906a22ae4dd12c47a11175..884e5f6705472bbffd74c717d37fd709b9e62833 100644 (file)
Binary files a/src/lib/jsmn/example/MAPTEST.EXE and b/src/lib/jsmn/example/MAPTEST.EXE differ
index 9de99e28a94930e1a72101c9f970c2109c5ebd97..942402fab92fd61e0239af6a94c9f82dd07f9261 100644 (file)
@@ -13,6 +13,7 @@
        "\"groups\": [\"users\", \"wheel\", \"audio\", \"video\"]}";*/
 
 char *JSON_STRING;
+char JSON_S[6144];
 
 long int filesize(FILE *fp)\r
 {\r
@@ -39,8 +40,7 @@ int main() {
        jsmn_parser p;
        FILE *fh = fopen("../../../../data/test.map", "r");
        jsmntok_t t[1536]; /* We expect no more than 128 tokens */
-       char JSON_S[6144];
-       memset(JSON_S, 0, sizeof(JSON_S));
+       //memset(JSON_S, 0, sizeof(JSON_S));
 
        if(fh != NULL)
        {
@@ -53,7 +53,7 @@ int main() {
        jsmn_init(&p);
        r = jsmn_parse(&p, JSON_STRING, filesize(fh), t, sizeof(t)/sizeof(t[0]));
                fclose(fh); fh = NULL;
-       printf("%s", JSON_STRING);
+       //printf("%s", JSON_STRING);
        if (r < 0) {
                printf("Failed to parse JSON: %d\n", r);
                return 1;