summaryrefslogtreecommitdiff
path: root/builtin/apply.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2011-12-05 23:12:34 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-12-05 23:12:34 (GMT)
commite72c1dd3bd3b6b2255707136348628a99d3b74a5 (patch)
tree4d9e54df2b2bf28faccd14cc7b0882ccb066729c /builtin/apply.c
parent7b1baed3fbcffbc496a3161c969ba188ac7c6a7d (diff)
parent83838d5c1b8ca2efee52184136776c3cf7d5df2f (diff)
downloadgit-e72c1dd3bd3b6b2255707136348628a99d3b74a5.zip
git-e72c1dd3bd3b6b2255707136348628a99d3b74a5.tar.gz
git-e72c1dd3bd3b6b2255707136348628a99d3b74a5.tar.bz2
Merge branch 'ab/clang-lints'
* ab/clang-lints: cast variable in call to free() in builtin/diff.c and submodule.c apply: get rid of useless x < 0 comparison on a size_t type
Diffstat (limited to 'builtin/apply.c')
-rw-r--r--builtin/apply.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/builtin/apply.c b/builtin/apply.c
index 84a8a0b..b3b59db 100644
--- a/builtin/apply.c
+++ b/builtin/apply.c
@@ -250,9 +250,6 @@ static int fuzzy_matchlines(const char *s1, size_t n1,
const char *last2 = s2 + n2 - 1;
int result = 0;
- if (n1 < 0 || n2 < 0)
- return 0;
-
/* ignore line endings */
while ((*last1 == '\r') || (*last1 == '\n'))
last1--;