From: Jihoon Kim Date: Tue, 2 Jan 2018 01:32:18 +0000 (+0900) Subject: Fix derefence of NULL issue detected by static analysis tool X-Git-Tag: accepted/tizen/unified/20180102.070209~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F20%2F165520%2F1;p=platform%2Fcore%2Fuifw%2Fise-default.git Fix derefence of NULL issue detected by static analysis tool Change-Id: Ia647683357ffb6e3627035dc4683ed55e03428fd Signed-off-by: Jihoon Kim --- diff --git a/src/ise.cpp b/src/ise.cpp index 00b9cea..fc979ff 100644 --- a/src/ise.cpp +++ b/src/ise.cpp @@ -2358,6 +2358,9 @@ static void show_autofill_data(Ecore_IMF_Input_Hints input_hints) LOGW("ckmc_get_data error: %d", ret); return; } else { + if (!ckmc_data) + return; + autofill_data = strndup((const char *)ckmc_data->data, ckmc_data->size); SECURE_LOGD("data : '%s', len : %d", autofill_data, ckmc_data->size); }