X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin-ls-files.c;h=5398a41415372b07fa1fdb43c26b5570e9d990b8;hb=91c8d5905c33e9d7c9014a1c6c7cec8eb86584df;hp=f7c066b24b7a6a728fd2f0bf4a92a31fb4a695dd;hpb=6169a89c4fd29cf9c747bab7bd310877328bc7e2;p=git.git diff --git a/builtin-ls-files.c b/builtin-ls-files.c index f7c066b24..5398a4141 100644 --- a/builtin-ls-files.c +++ b/builtin-ls-files.c @@ -117,7 +117,7 @@ static void show_other_files(struct dir_struct *dir) if (0 <= pos) continue; /* exact match */ pos = -pos - 1; - if (pos < active_nr) { + if (pos < active_nr) { ce = active_cache[pos]; if (ce_namelen(ce) == len && !memcmp(ce->name, ent->name, len))