summaryrefslogtreecommitdiff
path: root/builtin/apply.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2011-12-14 05:47:51 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-12-14 05:47:51 (GMT)
commitc0eb9ccfb97297e25ccbab0481159282147b353f (patch)
treeb7484bd897f92f726103dc3363183bca9626358e /builtin/apply.c
parent3b425656a469722d9c45b7c88e0e01a9cd8c0fd3 (diff)
parent83838d5c1b8ca2efee52184136776c3cf7d5df2f (diff)
downloadgit-c0eb9ccfb97297e25ccbab0481159282147b353f.zip
git-c0eb9ccfb97297e25ccbab0481159282147b353f.tar.gz
git-c0eb9ccfb97297e25ccbab0481159282147b353f.tar.bz2
Merge branch 'ab/clang-lints' into maint-1.7.7
* 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 311a94e..082fe8f 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--;