aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/evas/canvas/evas_textblock_hyphenation.x
diff options
context:
space:
mode:
authorYoungbok Shin <youngb.shin@samsung.com>2016-02-12 09:46:33 +0000
committerTom Hacohen <tom@stosb.com>2016-02-12 09:46:44 +0000
commit0186f87c4905340d842d79ae8ad39648eec19c3d (patch)
tree43ae682bb28aabbd819b02c8835a62d7ab037636 /src/lib/evas/canvas/evas_textblock_hyphenation.x
parentecore_imf/wayland: send cursor position before requesting to show (diff)
downloadefl-0186f87c4905340d842d79ae8ad39648eec19c3d.tar.gz
Evas textblock: Fix _dict_hyphen_load could return an uninitialized pointer
Summary: If there are hyph_*.dic files except for requested language, "dict" pointer could be return without initialized. It doesn't make any warning messages when it is compiled. Normally, it is NULL implicitly. But, it is good to set NULL explicitly for understanding code. Test Plan: N/A Reviewers: herdsman, tasn, woohyun Subscribers: cedric, jpeg Differential Revision: https://phab.enlightenment.org/D3674
Diffstat (limited to 'src/lib/evas/canvas/evas_textblock_hyphenation.x')
-rw-r--r--src/lib/evas/canvas/evas_textblock_hyphenation.x2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/evas/canvas/evas_textblock_hyphenation.x b/src/lib/evas/canvas/evas_textblock_hyphenation.x
index 1a3f6c676f..9c5f47c2fa 100644
--- a/src/lib/evas/canvas/evas_textblock_hyphenation.x
+++ b/src/lib/evas/canvas/evas_textblock_hyphenation.x
@@ -31,7 +31,7 @@ _dict_hyphen_load(const char *lang)
{
Eina_Iterator *it;
Eina_File_Direct_Info *dir;
- void *dict;
+ void *dict = NULL;
it = eina_file_direct_ls(EVAS_DICTS_HYPHEN_DIR);
if (!it)