From 4b01ea2597526df8b0e0d82d25aae36c7faa8eff Mon Sep 17 00:00:00 2001 From: ChunEon Park Date: Mon, 15 Jun 2015 13:58:02 +0900 Subject: [PATCH] calendar: + null check. --- src/lib/elm_calendar.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/elm_calendar.c b/src/lib/elm_calendar.c index 90a6f17..9af34c4 100644 --- a/src/lib/elm_calendar.c +++ b/src/lib/elm_calendar.c @@ -1333,6 +1333,7 @@ _elm_calendar_mark_add(Eo *obj, Elm_Calendar_Data *sd, const char *mark_type, st Elm_Calendar_Mark *mark; mark = _mark_new(obj, mark_type, mark_time, repeat); + if (!mark) return NULL; sd->marks = eina_list_append(sd->marks, mark); mark->node = eina_list_last(sd->marks); -- 2.7.4