summaryrefslogtreecommitdiffstats
path: root/src/kadmin/cli/getdate.y
diff options
context:
space:
mode:
Diffstat (limited to 'src/kadmin/cli/getdate.y')
-rw-r--r--src/kadmin/cli/getdate.y3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/kadmin/cli/getdate.y b/src/kadmin/cli/getdate.y
index 613bc609c..fc0a403e2 100644
--- a/src/kadmin/cli/getdate.y
+++ b/src/kadmin/cli/getdate.y
@@ -631,6 +631,7 @@ DSTcorrect(time_t Start, time_t Future, int *error)
return -1;
}
FutureDay = (tm->tm_hour + 1) % 24;
+ *error = 0;
return (Future - Start) + (StartDay - FutureDay) * 60L * 60L;
}
@@ -873,7 +874,7 @@ get_date(char *p)
time_t Start;
time_t tod;
time_t delta;
- int error = 0;
+ int error;
yyInput = p;
if (now == NULL) {