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:
Russ Allbery 2010-07-09 18:06:47 -07:00 committed by Derrick Brashear
parent ad470b2ed2
commit 9e2aba9912

View File

@ -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) {