Fixed uninitialized variable warnings 89/77989/1
authorJi-hoon Lee <dalton.lee@samsung.com>
Mon, 4 Jul 2016 00:50:06 +0000 (09:50 +0900)
committerJi-hoon Lee <dalton.lee@samsung.com>
Mon, 4 Jul 2016 00:50:16 +0000 (09:50 +0900)
Change-Id: I79ee405ec5cb78363e1619c2c6e06e951e6c6ace

scl/gwes/efl/sclwindows-efl.cpp
scl/scluibuilder.cpp

index 5143aed..d1fec90 100644 (file)
@@ -163,8 +163,8 @@ CSCLWindowsImplEfl::create_window(const sclwindow parent, SclWindowContext *wind
     int rots[4] = {0, 90, 180, 270};
     elm_win_wm_rotation_available_rotations_set(win, rots, 4);
 
-    scl16 new_width;
-    scl16 new_height;
+    scl16 new_width = 0;
+    scl16 new_height = 0;
     CSCLContext *context = CSCLContext::get_instance();
     if (context) {
         if (context->get_rotation() == ROTATION_90_CW || context->get_rotation() == ROTATION_90_CCW) {
index 49ea154..c8e3dc1 100644 (file)
@@ -579,7 +579,7 @@ CSCLUIBuilder::draw_button_label(const sclwindow window, const scldrawctx draw_c
                     info.is_bold = info.is_italic = true;
 
                     CSCLContext *context = CSCLContext::get_instance();
-                    SCLShiftState shiftstate;
+                    SCLShiftState shiftstate = SCL_SHIFT_STATE_OFF;
                     if (context)
                         shiftstate = context->get_shift_state();
                     if (labelproperties->shadow_distance > 0 && labelproperties->shadow_color[shiftstate][state].a != 0) {