fix for the following valgrind annoyance:
authordiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 24 Jul 2011 03:59:09 +0000 (03:59 +0000)
committerdiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 24 Jul 2011 03:59:09 +0000 (03:59 +0000)
Conditional jump or move depends on uninitialised value(s)
   at 0x4128897: _elm_smart_scroller_child_region_show_internal (els_scroller.c:1081)
   by 0x4128A25: elm_smart_scroller_child_region_show (els_scroller.c:1113)
   by 0x408B57E: elm_entry_cursor_end_set (elm_entry.c:2337)
 Uninitialised value was created by a stack allocation
   at 0x408B4BC: elm_entry_cursor_end_set (elm_entry.c:2328)

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@61627 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/elm_entry.c

index 90cc6fd..9110437 100644 (file)
@@ -2330,6 +2330,7 @@ elm_entry_cursor_end_set(Evas_Object *obj)
    Widget_Data *wd = elm_widget_data_get(obj);
    if (!wd) return;
    int x, y, w, h;
+   x = y = w = h = 1;
    edje_object_part_text_cursor_end_set(wd->ent, "elm.text", EDJE_CURSOR_MAIN);
    if (wd->scroll)
      {