Fix build warning related to uninitialize value 43/66643/3
authorJihoon Kim <jihoon48.kim@samsung.com>
Wed, 20 Apr 2016 05:52:01 +0000 (14:52 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Wed, 20 Apr 2016 05:53:26 +0000 (14:53 +0900)
Change-Id: I50cf91256ca07aad147ccb9d36b3858ebd3725a3

ism/modules/panelagent/wayland/wayland_panel_agent_module.cpp

index cee6093917ee9b2d24e6d330e32f0176ac7ec3c8..43637180ba16e65dd384e4499096873665e177aa 100755 (executable)
@@ -2021,7 +2021,7 @@ wsc_send_preedit (WSCContextISF* wsc_ctx, int32_t cursor)
 
         if (!wsc_ctx->impl->preedit_attrlist.empty()) {
             if (mbs.length ()) {
-                uint32_t preedit_style;
+                uint32_t preedit_style = WL_TEXT_INPUT_PREEDIT_STYLE_DEFAULT;
                 int start_index, end_index;
                 int wlen = wsc_ctx->impl->preedit_string.length ();
                 AttributeList::const_iterator i;
@@ -2050,9 +2050,8 @@ wsc_send_preedit (WSCContextISF* wsc_ctx, int32_t cursor)
                                 case SCIM_ATTR_DECORATE_BGCOLOR2:
                                 case SCIM_ATTR_DECORATE_BGCOLOR3:
                                 case SCIM_ATTR_DECORATE_BGCOLOR4:
-                                    preedit_style = WL_TEXT_INPUT_PREEDIT_STYLE_DEFAULT;
-                                    break;
                                 default:
+                                    preedit_style = WL_TEXT_INPUT_PREEDIT_STYLE_DEFAULT;
                                     break;
                             }