diff options
author | Ted Gould <ted@gould.cx> | 2013-09-03 21:47:27 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2013-09-03 21:47:27 -0500 |
commit | 9debe3352135af9f53d1e7a979f5a46b5410dd60 (patch) | |
tree | dafa090420a4d876d1e06d4a9f2bb2e064cd0ff7 /src | |
parent | f47b93edd44b7eb7525f704e7801985e895716c6 (diff) | |
download | ayatana-indicator-datetime-9debe3352135af9f53d1e7a979f5a46b5410dd60.tar.gz ayatana-indicator-datetime-9debe3352135af9f53d1e7a979f5a46b5410dd60.tar.bz2 ayatana-indicator-datetime-9debe3352135af9f53d1e7a979f5a46b5410dd60.zip |
Protect against invalid begin or end dates
Diffstat (limited to 'src')
-rw-r--r-- | src/planner.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/planner.c b/src/planner.c index 1643651..6cbf80c 100644 --- a/src/planner.c +++ b/src/planner.c @@ -184,6 +184,8 @@ indicator_datetime_planner_get_appointments (IndicatorDatetimePlanner * self, GD GSList * appointments; g_return_val_if_fail (INDICATOR_IS_DATETIME_PLANNER (self), NULL); + g_return_val_if_fail (begin != NULL, NULL); + g_return_val_if_fail (end != NULL, NULL); appointments = INDICATOR_DATETIME_PLANNER_GET_CLASS (self)->get_appointments (self, begin, end); return g_slist_sort (appointments, compare_appointments_by_start_time); |