diff options
Diffstat (limited to 'object-file.c')
| -rw-r--r-- | object-file.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/object-file.c b/object-file.c index 4f77ce0982..9e57eb6c27 100644 --- a/object-file.c +++ b/object-file.c @@ -1282,8 +1282,9 @@ static int index_mem(struct index_state *istate, } } if (flags & INDEX_FORMAT_CHECK) { - struct fsck_options opts = FSCK_OPTIONS_DEFAULT; + struct fsck_options opts; + fsck_options_init(&opts, the_repository, FSCK_OPTIONS_DEFAULT); opts.strict = 1; opts.error_func = hash_format_check_report; if (fsck_buffer(null_oid(istate->repo->hash_algo), type, buf, size, &opts)) |
