aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2013-11-28 16:33:46 +0000
committerTom Hacohen <tom@stosb.com>2013-11-28 16:33:46 +0000
commit8670180dbb9e1e3d666a04e139096530fc15e4f3 (patch)
tree2b12c997cb8a9f4eebd5feb61b52011ed4c5353e
parentElm scroller: _movement_block_get fix return val on error. (diff)
downloadelementary-8670180dbb9e1e3d666a04e139096530fc15e4f3.tar.gz
Elm scroller: prevent usage of uninitialized vars as reported by valgrind.
This improves the terminology crash rate a bit.
-rw-r--r--src/lib/elm_scroller.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/elm_scroller.c b/src/lib/elm_scroller.c
index c20ce7ba4..edfc9b88a 100644
--- a/src/lib/elm_scroller.c
+++ b/src/lib/elm_scroller.c
@@ -344,6 +344,7 @@ _elm_scroller_smart_sizing_eval(Eo *obj, void *_pd, va_list *list EINA_UNUSED)
w = -1;
h = -1;
+ vmw = vmh = 0;
edje_object_size_min_calc(wd->resize_obj, &vmw, &vmh);
if (sd->min_w) w = vmw + minw;