[evolution-data-server/wip/mcrha/libical-glib] Address a "may be used uninitialized" compiler warning
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server/wip/mcrha/libical-glib] Address a "may be used uninitialized" compiler warning
- Date: Mon, 1 Apr 2019 16:43:36 +0000 (UTC)
commit 9df589c502b2cc167c3f2ee54f19015febd683f3
Author: Milan Crha <mcrha redhat com>
Date: Mon Apr 1 18:44:53 2019 +0200
Address a "may be used uninitialized" compiler warning
src/calendar/libedata-cal/e-cal-backend-sexp.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/src/calendar/libedata-cal/e-cal-backend-sexp.c b/src/calendar/libedata-cal/e-cal-backend-sexp.c
index feafc0b3c..46884d35a 100644
--- a/src/calendar/libedata-cal/e-cal-backend-sexp.c
+++ b/src/calendar/libedata-cal/e-cal-backend-sexp.c
@@ -368,6 +368,8 @@ func_due_in_time_range (ESExp *esexp,
due_t = i_cal_time_as_timet_with_zone (e_cal_component_datetime_get_value (dt), zone);
else
due_t = i_cal_time_as_timet (e_cal_component_datetime_get_value (dt));
+ } else {
+ due_t = (time_t) 0;
}
if (dt && e_cal_component_datetime_get_value (dt) && (due_t <= end && due_t >= start))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]