summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_dayselector.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2016-06-03 12:01:35 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2016-06-03 15:29:17 +0900
commita4701ea9696d3e6aab9d5b14895cee903ea5f048 (patch)
tree60f2eeaf41ef2d36c48a0fb0ea343b3bf0e4d301 /src/lib/elementary/elm_dayselector.c
parent5fd02a79cc7e0fcc934b784a747a1aca4436bc08 (diff)
elm: Partially revert "elementary: avoid random memory access."
This reverts commit ac5a0b7e79d6b32285bd7b794f050826f38cc7c2. I added assert(pd == sd) in the modified code and couldn't find anything suspicious. The proper class is used in eo_data_scope_get(). I also can't find a crash or a bug currently in hover. I know there was a problem earlier, but that was fixed in 3092e08a83f754ba8d49c. Now, if there is still a problem, we should check it carefully. Pinging @cedric
Diffstat (limited to 'src/lib/elementary/elm_dayselector.c')
-rw-r--r--src/lib/elementary/elm_dayselector.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/elementary/elm_dayselector.c b/src/lib/elementary/elm_dayselector.c
index a65ca94..bc03214 100644
--- a/src/lib/elementary/elm_dayselector.c
+++ b/src/lib/elementary/elm_dayselector.c
@@ -220,10 +220,9 @@ _item_find(const Evas_Object *obj,
220} 220}
221 221
222static Eina_Bool 222static Eina_Bool
223_elm_dayselector_content_set(Eo *obj, Elm_Dayselector_Data *pd, const char *item, Evas_Object *content) 223_elm_dayselector_content_set(Eo *obj, Elm_Dayselector_Data *sd, const char *item, Evas_Object *content)
224{ 224{
225 Eina_Bool int_ret = EINA_FALSE; 225 Eina_Bool int_ret = EINA_FALSE;
226 Elm_Dayselector_Data *sd = eo_data_scope_get(obj, MY_CLASS);
227 226
228 int day; 227 int day;
229 char buf[1024]; 228 char buf[1024];