cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=1900e7785fd92d67fcd3938ea222a8e1a8325e9d

commit 1900e7785fd92d67fcd3938ea222a8e1a8325e9d
Author: woochan lee <[email protected]>
Date:   Mon Jan 26 12:11:03 2015 +0100

    embryo: prevent useless assignment.
    
    Summary: In the if case 's1[]19 = 0' state looks meaningless.
    
    Reviewers: raster, Hermet, cedric
    
    Reviewed By: cedric
    
    Subscribers: cedric
    
    Differential Revision: https://phab.enlightenment.org/D1895
    
    Signed-off-by: Cedric BAIL <[email protected]>
---
 src/bin/embryo/embryo_cc_sc2.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/bin/embryo/embryo_cc_sc2.c b/src/bin/embryo/embryo_cc_sc2.c
index 18a2a75..1456cb8 100644
--- a/src/bin/embryo/embryo_cc_sc2.c
+++ b/src/bin/embryo/embryo_cc_sc2.c
@@ -2182,8 +2182,9 @@ needtoken(int token)
         else
           {
              strncpy(s1, sc_tokens[token - tFIRST], 19); /* multi-character 
symbol */
+             s1[19] = 0;
           }
-        s1[19] = 0;
+
         if (!freading)
           {
              strncpy(s2, "-end of file-", 19);

-- 


Reply via email to