summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwoochan lee <wc0917.lee@samsung.com>2015-01-26 12:11:03 +0100
committerCedric BAIL <cedric@osg.samsung.com>2015-01-26 12:14:25 +0100
commit1900e7785fd92d67fcd3938ea222a8e1a8325e9d (patch)
tree81f7b7bf12b3bd147bf61f2602c32612d4923a1e
parenta376582b4f05b230c038276b81ed2a5ed919f1e4 (diff)
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 <cedric@osg.samsung.com>
-rw-r--r--src/bin/embryo/embryo_cc_sc2.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/embryo/embryo_cc_sc2.c b/src/bin/embryo/embryo_cc_sc2.c
index 18a2a752bd..1456cb8fc9 100644
--- a/src/bin/embryo/embryo_cc_sc2.c
+++ b/src/bin/embryo/embryo_cc_sc2.c
@@ -2182,8 +2182,9 @@ needtoken(int token)
2182 else 2182 else
2183 { 2183 {
2184 strncpy(s1, sc_tokens[token - tFIRST], 19); /* multi-character symbol */ 2184 strncpy(s1, sc_tokens[token - tFIRST], 19); /* multi-character symbol */
2185 s1[19] = 0;
2185 } 2186 }
2186 s1[19] = 0; 2187
2187 if (!freading) 2188 if (!freading)
2188 { 2189 {
2189 strncpy(s2, "-end of file-", 19); 2190 strncpy(s2, "-end of file-", 19);