fix clang nonnull complaint

This commit is contained in:
Carsten Haitzler 2013-07-16 17:10:59 +09:00
parent 8d324a5d3d
commit 8db1013956
1 changed files with 2 additions and 0 deletions

View File

@ -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;