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:
authorRené Scharfe <l.s.r@web.de>2017-07-16 14:16:01 +0300
committerJunio C Hamano <gitster@pobox.com>2017-07-18 00:55:21 +0300
commit168e63554cbd965fee4d0092e02f8170eba7481f (patch)
tree4c8dab271a4d080f1ba05f91d3ce2d2b3d3ee7fb /git-compat-util.h
parent177366415b95fb72bc2c37d55a936ff101986285 (diff)
ls-files: don't try to prune an empty index
Exit early when asked to prune an index that contains no entries to begin with. This avoids pointer arithmetic on istate->cache, which is possibly NULL in that case. Found with Clang's UBSan. Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-compat-util.h')
0 files changed, 0 insertions, 0 deletions