23 lines
682 B
Diff
23 lines
682 B
Diff
From: Jean Delvare <jdelvare@suse.de>
|
|
Subject: Drop useless test in another_hunk()
|
|
Upstream: Committed (65193f1cc1bf38bdd63d1f3087b0d7e16ad3f082)
|
|
|
|
This test will always succeed so it is either broken or useless. The
|
|
equivalent code path for context patches doesn't have this test so I
|
|
suppose it's OK to just remove it.
|
|
---
|
|
src/pch.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
--- a/src/pch.c
|
|
+++ b/src/pch.c
|
|
@@ -1651,7 +1651,7 @@ another_hunk (enum diff difftype, bool r
|
|
if (*s == ' ') s++;
|
|
if (*s++ != '@')
|
|
malformed ();
|
|
- if (*s++ == '@' && *s == ' ' && *s != '\0')
|
|
+ if (*s++ == '@' && *s == ' ')
|
|
{
|
|
p_c_function = s;
|
|
while (*s != '\n')
|