tasn pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=28f00a117ab611b563436efc821a3cf44e026813
commit 28f00a117ab611b563436efc821a3cf44e026813 Author: Tom Hacohen <t...@stosb.com> Date: Tue Dec 8 11:41:28 2015 +0000 Edje cc: Fix use of uninitialised value. Slash should be initialised to NULL, as if slash was not found in case we don't even look for it. Also, further restrict slash's scope. @fix --- src/bin/edje/edje_cc_sources.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/bin/edje/edje_cc_sources.c b/src/bin/edje/edje_cc_sources.c index 47f7665..381ba20 100644 --- a/src/bin/edje/edje_cc_sources.c +++ b/src/bin/edje/edje_cc_sources.c @@ -147,7 +147,6 @@ source_fetch_file(const char *fil, const char *filname) forgetit = 1; else { - char *slash; ssize_t l = 0; /* get the directory of the current file @@ -155,11 +154,16 @@ source_fetch_file(const char *fil, const char *filname) */ if (!dir) { + char *slash; if (strrchr(fil, '/')) { dir = mem_strdup(fil); slash = strrchr(dir, '/'); } + else + { + slash = NULL; + } #ifdef _WIN32 if (strrchr(fil, '\\')) { --