Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2021-05-20 23:50:38 +0300
committerJunio C Hamano <gitster@pobox.com>2021-05-20 23:50:38 +0300
commit107691cb07aab771585844fcd39d5e1c7f1ed14b (patch)
tree2618f2bbdb4cdf90f4f62a1de745ffec60443bac /sparse-index.c
parent2b8b1aa6ad9d8d9ba15dbd1c1823b9db71994105 (diff)
parent4279cb1c6e4e5b60b099833d8e3debba4ac35eba (diff)
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
Diffstat (limited to 'sparse-index.c')
-rw-r--r--sparse-index.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sparse-index.c b/sparse-index.c
index b0d5dc5f08..affc4048f2 100644
--- a/sparse-index.c
+++ b/sparse-index.c
@@ -34,7 +34,7 @@ static int convert_to_sparse_rec(struct index_state *istate,
int i, can_convert = 1;
int start_converted = num_converted;
enum pattern_match_result match;
- int dtype;
+ int dtype = DT_UNKNOWN;
struct strbuf child_path = STRBUF_INIT;
struct pattern_list *pl = istate->sparse_checkout_patterns;