bug-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

xmalloc, xstrdup, and ENOMEM


From: Alexey Mahotkin
Subject: xmalloc, xstrdup, and ENOMEM
Date: Sat, 10 May 2003 23:38:17 +0400
User-agent: Gnus/5.090006 (Oort Gnus v0.06) XEmacs/21.4 (Common Lisp, i386-debian-linux)

I'm looking into server.c and see a lot of places where the return value of
xmalloc() is actually checked for NULL.

Looking at subr.c I see that xmalloc() does error(1, ...) if malloc()
returned NULL.

Am I missing something or should we get rid of a lot of such code from
server.c (and other places probably)?

--alexm




reply via email to

[Prev in Thread] Current Thread [Next in Thread]