mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 05:27:44 +00:00
Fix ktime test for errors
The variable passed into ktime_DateToLong must be initialized to 0 or, on error, we get the previous value and the tests fail. Change-Id: I5528a830981a85fb6737bb8cb5931ab95faffb13 Reviewed-on: http://gerrit.openafs.org/2379 Tested-by: Russ Allbery <rra@stanford.edu> Reviewed-by: Derrick Brashear <shadow@dementia.org> Tested-by: Derrick Brashear <shadow@dementia.org>
This commit is contained in:
parent
ad470b2ed2
commit
9e2aba9912
@ -78,7 +78,7 @@ main(void)
|
||||
|
||||
errors = 0;
|
||||
for (tt = testTimes; tt->time; tt++) {
|
||||
t = 0;
|
||||
temp = 0;
|
||||
code = ktime_DateToLong(tt->time, &temp);
|
||||
t = temp;
|
||||
if (tt->code == 1) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user