raster pushed a commit to branch master.
commit 8db101395608f1513d3b60e2c87125a1f6ce3161
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date: Tue Jul 16 17:10:59 2013 +0900
fix clang nonnull complaint
---
src/bin/edje/epp/cpplib.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/bin/edje/epp/cpplib.c b/src/bin/edje/epp/cpplib.c
index 3d26cb5..be487423 100644
--- a/src/bin/edje/epp/cpplib.c
+++ b/src/bin/edje/epp/cpplib.c
@@ -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;
--
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk