preload-index.c: use the right index instead of the_index

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Nguyễn Thái Ngọc Duy committed Aug 13, 2018 at 18:14 UTC f9beff0336f7819e3d66bf8511b953e7c866f8a9
1 file changed +1 -1
preload-index.c
+1 -1
@@ -58,7 +58,7 @@ static void *preload_thread(void *_data)
58 continue;
59 if (ce->ce_flags & CE_FSMONITOR_VALID)
60 continue;
61 - if (!ce_path_match(&the_index, ce, &p->pathspec, NULL))
61 + if (!ce_path_match(index, ce, &p->pathspec, NULL))
62 continue;
63 if (threaded_has_symlink_leading_path(&cache, ce->name, ce_namelen(ce)))
64 continue;