Subject: NetBSD master CVS tree commits
To: None <source-changes@NetBSD.ORG>
From: None <source@NetBSD.ORG>
List: source-changes
Date: 05/20/1997 15:50:02
lukem
Tue May 20 08:46:06 PDT 1997
Update of /cvsroot/src/lib/libc/gen
In directory netbsd1:/var/slash-tmp/cvs-serv4205
Modified Files:
getgrent.c
Log Message:
* ensure that "outdata" values to various yp_xxx() functions are set
to the null pointer before invocation, so that the test in the
error case of "if (outdata != NULL) free(outdata)" won't potentially
try and free memory that wasn't malloc()ed.
* factor some duplicated code out of both parts of an "if {} else {}"
construct.
* remove use of `register' & KNFify.