jypark pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=6f26da1d728120a7bb31782eb989f97402315cba

commit 6f26da1d728120a7bb31782eb989f97402315cba
Author: Jaeun Choi <jaeun12.c...@samsung.com>
Date:   Mon Oct 1 15:24:20 2018 +0900

    evas_textblock_hyphenation: remove incorrect expression
    
    Summary: dict->cset is an array, not a pointer, thus is never NULL.
    
    Test Plan: N/A
    
    Reviewers: id213sin, cedric, Hermet, jypark
    
    Reviewed By: jypark
    
    Subscribers: #reviewers, #committers
    
    Tags: #efl
    
    Differential Revision: https://phab.enlightenment.org/D7121
---
 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 e8073b37bc..22c4adf3a1 100644
--- a/src/lib/evas/canvas/evas_textblock_hyphenation.x
+++ b/src/lib/evas/canvas/evas_textblock_hyphenation.x
@@ -150,7 +150,7 @@ _layout_wrap_hyphens_get(const Eina_Unicode *text, const 
char *lang,
 
    /* Convert UTF-32 encoded text to the other encoding
     * which is described in hyphen dictionary. */
-   if (dict->cset && strcmp(dict->cset, "UTF-32"))
+   if (strcmp(dict->cset, "UTF-32"))
      {
         converted_text = eina_str_convert_len("UTF-32", dict->cset,
                                               (char *)(text + word_start),

-- 


Reply via email to