diff options
| -rw-r--r-- | lua_cjson.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lua_cjson.c b/lua_cjson.c index 8518a86..19c22f2 100644 --- a/lua_cjson.c +++ b/lua_cjson.c | |||
| @@ -735,8 +735,9 @@ static int json_append_data(lua_State *l, json_config_t *cfg, | |||
| 735 | 735 | ||
| 736 | static void json_append_newline_and_indent(strbuf_t *json, json_config_t *cfg, int depth) | 736 | static void json_append_newline_and_indent(strbuf_t *json, json_config_t *cfg, int depth) |
| 737 | { | 737 | { |
| 738 | int i; | ||
| 738 | strbuf_append_char(json, '\n'); | 739 | strbuf_append_char(json, '\n'); |
| 739 | for (int i = 0; i < depth; i++) | 740 | for (i = 0; i < depth; i++) |
| 740 | strbuf_append_string(json, cfg->encode_indent); | 741 | strbuf_append_string(json, cfg->encode_indent); |
| 741 | } | 742 | } |
| 742 | 743 | ||
