Commit 5c593fae authored by Hisham's avatar Hisham
Browse files

Be stricter!

parent d311e85b
...@@ -27,7 +27,7 @@ void* xMalloc(size_t size) { ...@@ -27,7 +27,7 @@ void* xMalloc(size_t size) {
void* xCalloc(size_t nmemb, size_t size) { void* xCalloc(size_t nmemb, size_t size) {
void* data = calloc(nmemb, size); void* data = calloc(nmemb, size);
if (!data && nmemb > 0 && size > 0) { if (!data) {
curs_set(1); curs_set(1);
endwin(); endwin();
write(2, oomMessage, sizeof oomMessage - 1); write(2, oomMessage, sizeof oomMessage - 1);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment