Skip to content

Commit c08e112

Browse files
committed
Merge branch 'ar/mailinfo-memcmp-to-skip-prefix'
Code clean-up. * ar/mailinfo-memcmp-to-skip-prefix: mailinfo: use starts_with() when checking scissors
2 parents 18b49be + 4184cbd commit c08e112

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mailinfo.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -705,8 +705,8 @@ static int is_scissors_line(const char *line)
705705
perforation++;
706706
continue;
707707
}
708-
if ((!memcmp(c, ">8", 2) || !memcmp(c, "8<", 2) ||
709-
!memcmp(c, ">%", 2) || !memcmp(c, "%<", 2))) {
708+
if (starts_with(c, ">8") || starts_with(c, "8<") ||
709+
starts_with(c, ">%") || starts_with(c, "%<")) {
710710
in_perforation = 1;
711711
perforation += 2;
712712
scissors += 2;

0 commit comments

Comments
 (0)