aboutsummaryrefslogtreecommitdiff
path: root/src/planner.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2013-09-08 19:32:38 +0000
committerTarmac <Unknown>2013-09-08 19:32:38 +0000
commit0896192c82c10144c184f274943ed692599d7529 (patch)
treecda6d3207e6e77b1417f1b6175c281446d5d686e /src/planner.c
parentdd9d2e36dfda0eb3b321a1ed94f8d27739265b2a (diff)
parentfde292a8ff3c830ea27f3a11f45e959596fede09 (diff)
downloadayatana-indicator-datetime-0896192c82c10144c184f274943ed692599d7529.tar.gz
ayatana-indicator-datetime-0896192c82c10144c184f274943ed692599d7529.tar.bz2
ayatana-indicator-datetime-0896192c82c10144c184f274943ed692599d7529.zip
Protect against invalid begin or end dates. Fixes: https://bugs.launchpad.net/bugs/1216263.
Approved by PS Jenkins bot, Charles Kerr.
Diffstat (limited to 'src/planner.c')
-rw-r--r--src/planner.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/planner.c b/src/planner.c
index 124aeae..e826c2c 100644
--- a/src/planner.c
+++ b/src/planner.c
@@ -188,6 +188,8 @@ indicator_datetime_planner_get_appointments (IndicatorDatetimePlanner * self,
IndicatorDatetimePlannerClass * klass;
g_return_if_fail (INDICATOR_IS_DATETIME_PLANNER (self));
+ g_return_val_if_fail (begin != NULL, NULL);
+ g_return_val_if_fail (end != NULL, NULL);
klass = INDICATOR_DATETIME_PLANNER_GET_CLASS (self);
g_return_if_fail (klass->get_appointments != NULL);