[1812] in Moira

home help back first fref pref prev next nref lref last post

Re: change incremental programs args

daemon@ATHENA.MIT.EDU (Ezra Peisach)
Thu Jul 5 18:11:01 2001

Message-Id: <10107052210.AA13278@kangaroo.mit.edu>
To: Garry Zacheiss <zacheiss@mit.edu>
Cc: moiradev@mit.edu
In-Reply-To: Your message of "Thu, 05 Jul 2001 17:45:52 EDT."
             <200107052145.RAA23933@riff-raff.mit.edu> 
Date: Thu, 05 Jul 2001 18:10:56 EDT
From: Ezra Peisach <epeisach@MIT.EDU>


Just a philosophical issue... 

a) Return of malloc is never tested for NULL.
b) In this light id_to_name will free the memory allocated - but
never tests if null. free(null) might be considered unfriendly.
(qrtn.c)
c) malloc(0) will do different things on different platforms.
Sometimes it will return a pointer to valid memory, sometimes NULL, and
sometimes it will return a pointer to a random memory location which is
invalid. (I think A/UX did that)...

	Ezra


home help back first fref pref prev next nref lref last post