summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorvivek <vivek.ellur@samsung.com>2015-01-08 08:34:01 -0500
committerChris Michael <cp.michael@samsung.com>2015-01-08 08:34:21 -0500
commit2da804f6160c4daa23bb974b8348d190503bff49 (patch)
tree8d37a644136c136c91e2b7d95e402f6db3eb809d /src/modules
parent9a74e6aec48e1609e220c99966fae04f84fd82c8 (diff)
ecore_imf: Add null check condition in ecore_imf module
Summary: Fixed null pointer dereference issue in ecore_imf module @fix Signed-off-by: vivek <vivek.ellur@samsung.com> Reviewers: devilhorns Reviewed By: devilhorns Subscribers: raster, cedric Differential Revision: https://phab.enlightenment.org/D1813
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/ecore_imf/ibus/ibus_imcontext.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/modules/ecore_imf/ibus/ibus_imcontext.c b/src/modules/ecore_imf/ibus/ibus_imcontext.c
index 715d8cb0a2..2d776a0883 100644
--- a/src/modules/ecore_imf/ibus/ibus_imcontext.c
+++ b/src/modules/ecore_imf/ibus/ibus_imcontext.c
@@ -569,6 +569,7 @@ ecore_imf_context_ibus_preedit_string_with_attributes_get(Ecore_IMF_Context *ctx
569 EINA_LIST_FOREACH(ibusimcontext->preedit_attrs, l, attr1) 569 EINA_LIST_FOREACH(ibusimcontext->preedit_attrs, l, attr1)
570 { 570 {
571 attr2 = (Ecore_IMF_Preedit_Attr *)calloc(1, sizeof(Ecore_IMF_Preedit_Attr)); 571 attr2 = (Ecore_IMF_Preedit_Attr *)calloc(1, sizeof(Ecore_IMF_Preedit_Attr));
572 if (!attr2) continue;
572 attr2->preedit_type = attr1->preedit_type; 573 attr2->preedit_type = attr1->preedit_type;
573 attr2->start_index = attr1->start_index; 574 attr2->start_index = attr1->start_index;
574 attr2->end_index = attr1->end_index; 575 attr2->end_index = attr1->end_index;