corinthia-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gabriela Gibson <gabriela.gib...@gmail.com>
Subject Checking malloc success and adding perror()
Date Wed, 18 Feb 2015 21:19:50 GMT
Hi,

Reading through the source, I see that a lot of mallocs() do not have a

[[
if(foo == NULL) {
    perror("Foo: Out of memory.\n");
    return _exit(EXIT_FAILURE);
}
]]

check.

I can add those if you like.

G
-- 
Visit my Coding Diary: http://gabriela-gibson.blogspot.com/

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message