projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a376582
)
embryo: prevent useless assignment.
author
woochan lee
<wc0917.lee@samsung.com>
Mon, 26 Jan 2015 11:11:03 +0000
(12:11 +0100)
committer
Cedric 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
patch
|
blob
|
history
diff --git
a/src/bin/embryo/embryo_cc_sc2.c
b/src/bin/embryo/embryo_cc_sc2.c
index 18a2a752bdca65406a63190e3e93b9e23a1556fb..1456cb8fc9d981a90d103da3589db1be8254d506 100644
(file)
--- 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);