commit dab30184ccbf6b7c71bcbf6d59661f3198ed70b3
parent 077b8f35d5720b36f218ad66cf10899982db95fe
Author: Andreas Gruhler <agruhl@gmx.ch>
Date: Thu, 23 Jun 2022 09:41:29 +0200
fix(#11): reset conf_ch
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/diary.c b/src/diary.c
@@ -853,6 +853,8 @@ int main(int argc, char** argv) {
new_date.tm_mday = 1;
time_t new_datetime = mktime(&new_date);
+ // reset confirmation char from previous sync attempts
+ conf_ch = 0;
for( ; new_datetime <= end_of_month; new_datetime = mktime(&new_date)) {
if (conf_ch == -1) {
// sync error