jpeg pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=4f98d6a007b09829e5ae438de59e935aea419569
commit 4f98d6a007b09829e5ae438de59e935aea419569 Author: Jean-Philippe Andre <[email protected]> Date: Tue Aug 9 10:56:29 2016 +0900 edje_cc: Remove unused variable 'got_hash' got_hash will always be zero at the point where it's read. Fixes CID 1261439 --- src/bin/edje/edje_cc_sources.c | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/src/bin/edje/edje_cc_sources.c b/src/bin/edje/edje_cc_sources.c index 3f119bb..a2edf4d 100644 --- a/src/bin/edje/edje_cc_sources.c +++ b/src/bin/edje/edje_cc_sources.c @@ -86,7 +86,6 @@ source_fetch_file(const char *fil, const char *filname) while (fgets(buf, sizeof(buf), f)) { char *p, *pp; - int got_hash = 0; int forgetit = 0; int haveinclude = 0; char *file = NULL, *fname = NULL; @@ -94,17 +93,12 @@ source_fetch_file(const char *fil, const char *filname) p = buf; while ((!forgetit) && (*p)) { - if (!got_hash) - { - if (!isspace(*p)) - { - if (*p == '#') - got_hash = 1; - else - forgetit = 1; - } - p++; - } + if (!isspace(*p)) + { + if (*p != '#') + forgetit = 1; + } + p++; if (!haveinclude) { @@ -184,9 +178,7 @@ source_fetch_file(const char *fil, const char *filname) } else p++; - } - - got_hash = 0; + } } if ((file) && (fname)) source_fetch_file(file, fname); --
