diff options
Diffstat (limited to 'json-writer.c')
| -rw-r--r-- | json-writer.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/json-writer.c b/json-writer.c index 005c820aa4..8c5187e9fd 100644 --- a/json-writer.c +++ b/json-writer.c @@ -1,3 +1,5 @@ +#define DISABLE_SIGN_COMPARE_WARNINGS + #include "git-compat-util.h" #include "json-writer.h" @@ -46,10 +48,7 @@ static void append_quoted_string(struct strbuf *out, const char *in) static void indent_pretty(struct json_writer *jw) { - int k; - - for (k = 0; k < jw->open_stack.len; k++) - strbuf_addstr(&jw->json, " "); + strbuf_addstrings(&jw->json, " ", jw->open_stack.len); } /* |
