billiob pushed a commit to branch master.

http://git.enlightenment.org/apps/terminology.git/commit/?id=9346db3ba762bfa71d431a6861ea1df01dcee3ca

commit 9346db3ba762bfa71d431a6861ea1df01dcee3ca
Author: Boris Faure <bill...@gmail.com>
Date:   Tue Mar 25 21:57:34 2014 +0100

    initialize some variables
---
 src/bin/termio.c  | 8 ++++----
 src/bin/termpty.c | 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/bin/termio.c b/src/bin/termio.c
index 35d8a68..a6b14c6 100644
--- a/src/bin/termio.c
+++ b/src/bin/termio.c
@@ -3035,7 +3035,7 @@ _smart_cb_mouse_down(void *data, Evas *e EINA_UNUSED, 
Evas_Object *obj EINA_UNUS
 {
    Evas_Event_Mouse_Down *ev = event;
    Termio *sd = evas_object_smart_data_get(data);
-   int cx, cy;
+   int cx = 0, cy = 0;
    int shift, ctrl;
 
    EINA_SAFETY_ON_NULL_RETURN(sd);
@@ -3363,7 +3363,7 @@ static void
 _smart_cb_mouse_in(void *data, Evas *e EINA_UNUSED,
                    Evas_Object *obj EINA_UNUSED, void *event)
 {
-   int cx, cy;
+   int cx = 0, cy = 0;
    Evas_Event_Mouse_In *ev = event;
    Termio *sd = evas_object_smart_data_get(data);
 
@@ -3395,7 +3395,7 @@ _smart_cb_mouse_out(void *data, Evas *e EINA_UNUSED, 
Evas_Object *obj,
      }
    else
      {
-        int cx, cy;
+        int cx = 0, cy = 0;
 
         _smart_xy_to_cursor(data, ev->canvas.x, ev->canvas.y, &cx, &cy);
         sd->mouse.cx = cx;
@@ -3445,7 +3445,7 @@ _smart_cb_mouse_wheel(void *data, Evas *e EINA_UNUSED, 
Evas_Object *obj EINA_UNU
      }
    else
      {
-       int cx, cy;
+       int cx = 0, cy = 0;
 
        _smart_xy_to_cursor(data, ev->canvas.x, ev->canvas.y, &cx, &cy);
 
diff --git a/src/bin/termpty.c b/src/bin/termpty.c
index c342d64..1eb4344 100644
--- a/src/bin/termpty.c
+++ b/src/bin/termpty.c
@@ -743,7 +743,7 @@ termpty_resize(Termpty *ty, int new_w, int new_h)
 {
    Termcell *new_screen;
    Termsave **new_back;
-   int y_start, y_end, new_y_start, new_y_end;
+   int y_start, y_end, new_y_start = 0, new_y_end;
    int i, altbuf = 0;
 
    if ((ty->w == new_w) && (ty->h == new_h)) return;

-- 


Reply via email to