edje: fix CID 1054522 - Logically dead code
authorCedric BAIL <cedric@efl.so>
Mon, 14 Oct 2013 11:53:06 +0000 (13:53 +0200)
committerCedric BAIL <cedric@efl.so>
Mon, 14 Oct 2013 11:53:06 +0000 (13:53 +0200)
The buffer is a static buffer in that scenario, so never going to be NULL indeed.

src/bin/edje/epp/cpplib.c

index 42abad4..af65241 100644 (file)
@@ -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