diff options
author | Andreas Pasiopoulos <pasiopou@gmail.com> | 2016-08-11 18:51:29 +0300 |
---|---|---|
committer | Andreas Pasiopoulos <pasiopou@gmail.com> | 2016-08-11 18:51:29 +0300 |
commit | 6a4b3f878dddb1525b59b86da7fb392ab8fdc7b2 (patch) | |
tree | 82cd3c0d86515ca0a805198d2a7236295417ccb4 /test | |
parent | 86fdf76f7942d6a3921f66d792efb0e866f609bd (diff) | |
download | jansson-6a4b3f878dddb1525b59b86da7fb392ab8fdc7b2.zip jansson-6a4b3f878dddb1525b59b86da7fb392ab8fdc7b2.tar.gz jansson-6a4b3f878dddb1525b59b86da7fb392ab8fdc7b2.tar.bz2 |
Conform to c89
Diffstat (limited to 'test')
-rw-r--r-- | test/suites/api/test_memory_funcs.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/suites/api/test_memory_funcs.c b/test/suites/api/test_memory_funcs.c index ac58809..7cb4b73 100644 --- a/test/suites/api/test_memory_funcs.c +++ b/test/suites/api/test_memory_funcs.c @@ -25,11 +25,12 @@ static void create_and_free_complex_object() static void create_and_free_object_with_oom() { + int i; + char key[4]; json_t *obj = json_object(); - for (int i = 0; i < 10; i++) + for (i = 0; i < 10; i++) { - char key[4]; snprintf(key, sizeof key, "%d", i); json_object_set_new(obj, key, json_integer(i)); } |