embryo: prevent useless assignment.
authorwoochan lee <wc0917.lee@samsung.com>
Mon, 26 Jan 2015 11:11:03 +0000 (12:11 +0100)
committerCedric BAIL <cedric@osg.samsung.com>
Mon, 26 Jan 2015 11:14:25 +0000 (12:14 +0100)
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 <cedric@osg.samsung.com>
src/bin/embryo/embryo_cc_sc2.c

index 18a2a75..1456cb8 100644 (file)
@@ -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);