avoid using sha1_to_hex output as printf format
[gitweb.git] / builtin / apply.c
index ecb7f1b258cb802c934dc37f8d6af511e7b33ed1..7fc5c3e30745d50a05accb3a83ccfa8871963df6 100644 (file)
@@ -4667,6 +4667,9 @@ static void init_apply_state(struct apply_state *state,
        state->ws_error_action = warn_on_ws_error;
        state->ws_ignore_action = ignore_ws_none;
        state->linenr = 1;
+       string_list_init(&state->fn_table, 0);
+       string_list_init(&state->limit_by_name, 0);
+       string_list_init(&state->symlink_changes, 0);
        strbuf_init(&state->root, 0);
 
        git_apply_config();