summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJihoon Kim <jihoon48.kim@samsung.com>2014-01-22 09:46:24 +0900
committerJihoon Kim <jihoon48.kim@samsung.com>2014-01-22 09:46:24 +0900
commit2c0c2b0fed6bc5d696b3e85d2da0bd943edac68e (patch)
tree75b45ae1f231aae2c3dfb33aa77cd30166d36a9d /src
parent052fc85cd34aec41d50e5d8333bac6ee9ba9c7d6 (diff)
ximimmodule: fix dereference after null check
CID 1162749: Dereference after null check (FORWARD_NULL) /src/modules/ecore_imf/xim/ecore_imf_xim.c: 1027 in _ecore_imf_xim_preedit_draw_call()
Diffstat (limited to 'src')
-rw-r--r--src/modules/ecore_imf/xim/ecore_imf_xim.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/modules/ecore_imf/xim/ecore_imf_xim.c b/src/modules/ecore_imf/xim/ecore_imf_xim.c
index 5598cacaa0..66a355fa27 100644
--- a/src/modules/ecore_imf/xim/ecore_imf_xim.c
+++ b/src/modules/ecore_imf/xim/ecore_imf_xim.c
@@ -1024,7 +1024,10 @@ done:
1024 imf_context_data->feedbacks = calloc(imf_context_data->preedit_length, sizeof(XIMFeedback)); 1024 imf_context_data->feedbacks = calloc(imf_context_data->preedit_length, sizeof(XIMFeedback));
1025 1025
1026 for (i = 0; i < imf_context_data->preedit_length; i++) 1026 for (i = 0; i < imf_context_data->preedit_length; i++)
1027 imf_context_data->feedbacks[i] = t->feedback[i]; 1027 {
1028 if (t)
1029 imf_context_data->feedbacks[i] = t->feedback[i];
1030 }
1028 } 1031 }
1029 1032
1030 ecore_imf_context_preedit_changed_event_add(ctx); 1033 ecore_imf_context_preedit_changed_event_add(ctx);