xmalloc, xstrdup, and ENOMEM

Alexey Mahotkin <[email protected]>
Newsgroups gmane.comp.version-control.cvs.bugs
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.