aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ui-day.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ui-day.c b/src/ui-day.c
index 53cb2f1..ab1f80b 100644
--- a/src/ui-day.c
+++ b/src/ui-day.c
@@ -534,11 +534,11 @@ void ui_day_item_add(void)
is_appointment = 0;
break;
}
- ret = parse_datetime(item_time, &start);
- if (!(ret & PARSE_DATETIME_HAS_TIME))
- is_appointment = 0;
- if (ret)
+ if ((ret = parse_datetime(item_time, &start))) {
+ if (!(ret & PARSE_DATETIME_HAS_TIME))
+ is_appointment = 0;
break;
+ }
status_mesg(format_message_1, enter_str);
keys_wait_for_any_key(win[KEY].p);
}