Index: diffutils-3.7/src/util.c =================================================================== --- diffutils-3.7.orig/src/util.c +++ diffutils-3.7/src/util.c @@ -1074,7 +1074,7 @@ lines_differ (char const *s1, char const while ((c = *p) != '\n' && isspace (c)) ++p; if (c != '\n') - break; + goto not_eol; } if (c2 != '\n') { @@ -1082,11 +1082,12 @@ lines_differ (char const *s1, char const while ((c = *p) != '\n' && isspace (c)) ++p; if (c != '\n') - break; + goto not_eol; } /* Both lines have nothing but whitespace left. */ return false; } + not_eol: if (ignore_white_space == IGNORE_TRAILING_SPACE) break; FALLTHROUGH;