From: Ji-hoon Lee Date: Tue, 13 Mar 2018 10:05:31 +0000 (+0900) Subject: Fixed defects detected by static analysis tool X-Git-Tag: accepted/tizen/unified/20180314.062025~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=256458baa99414f6ba733d588871e9a4292692c5;p=platform%2Fcore%2Fuifw%2Flibscl-core.git Fixed defects detected by static analysis tool Change-Id: I84217307b8b2c4a43b58b333351e3f1703467bc5 --- diff --git a/src/sclconnection-isf.cpp b/src/sclconnection-isf.cpp index 4d1f80c..dae093b 100644 --- a/src/sclconnection-isf.cpp +++ b/src/sclconnection-isf.cpp @@ -1253,7 +1253,7 @@ void CSCLConnectionISF::send_private_command(const sclchar *command) } } - if (m_initialized && !tc_command) { + if (m_initialized && command && !tc_command) { m_helper_agent.send_private_command(command); } } diff --git a/src/sclcoreui-efl.cpp b/src/sclcoreui-efl.cpp index f159604..8a15194 100644 --- a/src/sclcoreui-efl.cpp +++ b/src/sclcoreui-efl.cpp @@ -79,6 +79,8 @@ CSCLCoreUIEFL::CSCLCoreUIEFL() m_main_window = SCLWINDOW_INVALID; m_appid = NULL; m_display = NULL; + + memset(m_option_window_info, 0x00, sizeof(m_option_window_info)); } CSCLCoreUIEFL::~CSCLCoreUIEFL()