cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=48bc51b0c7a1062020415ea2ebf7f6076c1a1b4c

commit 48bc51b0c7a1062020415ea2ebf7f6076c1a1b4c
Author: Cedric BAIL <ced...@efl.so>
Date:   Mon Oct 14 13:53:06 2013 +0200

    edje: fix CID 1054522 - Logically dead code
    
    The buffer is a static buffer in that scenario, so never going to be NULL 
indeed.
---
 src/bin/edje/epp/cpplib.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/bin/edje/epp/cpplib.c b/src/bin/edje/epp/cpplib.c
index 42abad4..af65241 100644
--- a/src/bin/edje/epp/cpplib.c
+++ b/src/bin/edje/epp/cpplib.c
@@ -1888,7 +1888,6 @@ cpp_push_buffer(cpp_reader * pfile, unsigned char 
*buffer, long length)
    if (buf == pfile->buffer_stack)
       cpp_fatal("macro or `#include' recursion too deep");
    buf--;
-   if (!buf) return NULL;
    memset((char *)buf, 0, sizeof(cpp_buffer));
    CPP_BUFFER(pfile) = buf;
 #else

-- 


Reply via email to