ecore ibus_imcontext: print the value of cursor_pos only when cursor_pos

is not null.

This fixes coverity CID 1132624.
This commit is contained in:
Daniel Juyung Seo 2013-11-27 01:52:21 +09:00
parent 9314b15add
commit 0e0f79c6f2
1 changed files with 5 additions and 1 deletions

View File

@ -426,7 +426,11 @@ ecore_imf_context_ibus_preedit_string_get(Ecore_IMF_Context *ctx,
if (cursor_pos)
*cursor_pos = 0;
}
EINA_LOG_DBG("str : %s, cursor_pos : %d", *str, *cursor_pos);
if (cursor_pos)
EINA_LOG_DBG("str : %s, cursor_pos : %d", *str, *cursor_pos);
else
EINA_LOG_DBG("str : %s", *str);
}
EAPI void