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
path: root/blob.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2012-07-25 20:16:19 +0400
committerJunio C Hamano <gitster@pobox.com>2012-07-25 21:23:54 +0400
commit4a15758f2ef97970694012cfd6da7c8449bc68c2 (patch)
tree6b013d6ee1975c514297e22427ef23dbe1ac5e0c /blob.c
parent476109fa4c261c57cf20858b1879d5fede32e32c (diff)
help.c::uniq: plug a leak
We observe that the j-1 element can serve the same purpose as the i-1 element that we use in the strcmp(); it is either: 1. Exactly i-1, when the loop begins (and until we see a duplicate). 2. The same pointer that was stored at i-1 (if it was not a duplicate, and we just copied it into place). 3. A pointer to an equivalent string (i.e., we rejected i-1 _because_ it was identical to j-1). Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Tay Ray Chuan <rctay89@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'blob.c')
0 files changed, 0 insertions, 0 deletions