Skip to content

Commit 107691c

Browse files
committed
Merge branch 'ds/sparse-index-protections'
Fix access to uninitialized piece of memory, introduced during this cycle. * ds/sparse-index-protections: sparse-index: fix uninitialized jump
2 parents 2b8b1aa + 4279cb1 commit 107691c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sparse-index.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ static int convert_to_sparse_rec(struct index_state *istate,
3434
int i, can_convert = 1;
3535
int start_converted = num_converted;
3636
enum pattern_match_result match;
37-
int dtype;
37+
int dtype = DT_UNKNOWN;
3838
struct strbuf child_path = STRBUF_INIT;
3939
struct pattern_list *pl = istate->sparse_checkout_patterns;
4040

0 commit comments

Comments
 (0)