summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 26d6cc5)
raw | patch | inline | side by side (parent: 26d6cc5)
author | Jim Meyering <jim@meyering.net> | |
Wed, 26 Nov 2008 13:27:10 +0000 (14:27 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 26 Nov 2008 18:47:41 +0000 (10:47 -0800) |
Remove an accidentally duplicated sequence of 10 lines.
This happens to plug a leak, too.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This happens to plug a leak, too.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
xdiff-interface.c | patch | blob | history |
diff --git a/xdiff-interface.c b/xdiff-interface.c
index e8ef46d10dc53a1ee1781d07685984734bc3160f..d782f06d9916bdde33dc3f7312f9eac4e14ef3a1 100644 (file)
--- a/xdiff-interface.c
+++ b/xdiff-interface.c
line_buffer = xstrndup(line, len); /* make NUL terminated */
- /* Exclude terminating newline (and cr) from matching */
- if (len > 0 && line[len-1] == '\n') {
- if (len > 1 && line[len-2] == '\r')
- len -= 2;
- else
- len--;
- }
-
- line_buffer = xstrndup(line, len); /* make NUL terminated */
-
for (i = 0; i < regs->nr; i++) {
struct ff_reg *reg = regs->array + i;
if (!regexec(®->re, line_buffer, 2, pmatch, 0)) {
}
return git_default_config(var, value, cb);
}
-