forked from enlightenment/efl
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()
This commit is contained in:
parent
052fc85cd3
commit
2c0c2b0fed
|
@ -1024,8 +1024,11 @@ done:
|
|||
imf_context_data->feedbacks = calloc(imf_context_data->preedit_length, sizeof(XIMFeedback));
|
||||
|
||||
for (i = 0; i < imf_context_data->preedit_length; i++)
|
||||
{
|
||||
if (t)
|
||||
imf_context_data->feedbacks[i] = t->feedback[i];
|
||||
}
|
||||
}
|
||||
|
||||
ecore_imf_context_preedit_changed_event_add(ctx);
|
||||
ecore_imf_context_event_callback_call(ctx, ECORE_IMF_CALLBACK_PREEDIT_CHANGED, NULL);
|
||||
|
|
Loading…
Reference in New Issue