Blob
- Date:
- Message:
- add a test which triggers redundant 'No newline at end of file' messages The message appears after each hunk, but should only appear at the end of the entire diff. Regression introduced in commit 4125b1eff8d9dfcd961dc70ebbd5d54c97bdc3f6 "diff: handle missing new lines in trailing context" problem noticed by op@
- Actions:
- History | Blame | Raw File
1 --- test126.left.txt2 +++ test126.right.txt3 @@ -1,4 +1,4 @@4 -/* $OpenBSD: a_time_tm.c,v 1.15 2018/04/25 11:48:21 tb Exp $ */5 +/* $OpenBSD: a_time_tm.c,v 1.16 2020/12/16 18:35:59 tb Exp $ */6 /*7 * Copyright (c) 2015 Bob Beck <beck@openbsd.org>8 *9 @@ -108,10 +108,9 @@10 return (-1);12 lt = tm;13 - if (lt == NULL) {14 - memset(<m, 0, sizeof(ltm));15 + if (lt == NULL)16 lt = <m;17 - }18 + memset(lt, 0, sizeof(*lt));20 /* Timezone is required and must be GMT (Zulu). */21 if (bytes[len - 1] != 'Z')22 @@ -168,4 +167,4 @@23 }25 return (type);26 -}27 +}28 \ No newline at end of file