From 57252297d84ed3a55c1aaf0ae79e3dc6958fd4d3 Mon Sep 17 00:00:00 2001 From: Youngbok Shin Date: Fri, 12 Feb 2016 09:46:33 +0000 Subject: [PATCH] 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 Change-Id: Id2ce93c6c55c39e7f5464963fb26dd715e87264e --- src/lib/evas/canvas/evas_textblock_hyphenation.x | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/evas/canvas/evas_textblock_hyphenation.x b/src/lib/evas/canvas/evas_textblock_hyphenation.x index 1a3f6c6..9c5f47c 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) -- 2.7.4