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
This commit is contained in:
Youngbok Shin 2016-02-12 09:46:33 +00:00 committed by Tom Hacohen
parent 662389f39b
commit 0186f87c49
1 changed files with 1 additions and 1 deletions

View File

@ -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)