forked from enlightenment/efl
fix clang nonnull complaint
This commit is contained in:
parent
8d324a5d3d
commit
8db1013956
|
@ -1888,11 +1888,13 @@ 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
|
||||
cpp_buffer *buf = (cpp_buffer *) xmalloc(sizeof(cpp_buffer));
|
||||
|
||||
if (!buf) return NULL;
|
||||
memset((char *)buf, 0, sizeof(cpp_buffer));
|
||||
CPP_PREV_BUFFER(buf) = CPP_BUFFER(pfile);
|
||||
CPP_BUFFER(pfile) = buf;
|
||||
|
|
Loading…
Reference in New Issue