xref: /freebsd/contrib/libdiff/test/expect126.diff (revision aa1a8ff2d6dbc51ef058f46f3db5a8bb77967145)
1--- test126.left.txt
2+++ test126.right.txt
3@@ -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);
11
12 	lt = tm;
13-	if (lt == NULL) {
14-		memset(&ltm, 0, sizeof(ltm));
15+	if (lt == NULL)
16 		lt = &ltm;
17-	}
18+	memset(lt, 0, sizeof(*lt));
19
20 	/* Timezone is required and must be GMT (Zulu). */
21 	if (bytes[len - 1] != 'Z')
22@@ -168,4 +167,4 @@
23 	}
24
25 	return (type);
26-}
27+}
28\ No newline at end of file
29