summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean Delvare <jdelvare@suse.de>2014-11-10 11:27:57 +0100
committerAndreas Gruenbacher <agruen@linbit.com>2014-11-10 11:43:36 +0100
commit65193f1cc1bf38bdd63d1f3087b0d7e16ad3f082 (patch)
tree1c2aed4f8597b2fb4c2c0bc753eb52bb23508348
parente25e622dec2ff7579ba561188144d44c3ddad24f (diff)
downloadpatch-65193f1cc1bf38bdd63d1f3087b0d7e16ad3f082.tar.gz
Drop useless test in another_hunk()
src/pch.c (another_hunk): This test will always succeed.
-rw-r--r--src/pch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pch.c b/src/pch.c
index 75a642b..aab17aa 100644
--- a/src/pch.c
+++ b/src/pch.c
@@ -1651,7 +1651,7 @@ another_hunk (enum diff difftype, bool rev)
if (*s == ' ') s++;
if (*s++ != '@')
malformed ();
- if (*s++ == '@' && *s == ' ' && *s != '\0')
+ if (*s++ == '@' && *s == ' ')
{
p_c_function = s;
while (*s != '\n')