1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-04 09:09:56 +00:00

'\0' is the most ugly NULL pointer constant I've ever seen in real code.

This commit is contained in:
Eivind Eklund 1998-12-07 02:47:46 +00:00
parent 989c9647f2
commit c598db2204
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=41570
2 changed files with 4 additions and 4 deletions

View File

@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* @(#)union_subr.c 8.20 (Berkeley) 5/20/95
* $Id: union_subr.c,v 1.32 1998/11/03 08:01:48 peter Exp $
* $Id: union_subr.c,v 1.33 1998/11/15 15:33:51 bde Exp $
*/
#include <sys/param.h>
@ -774,7 +774,7 @@ union_relookup(um, dvp, vpp, cnp, cn, path, pathlen)
vrele(dvp);
else {
zfree(namei_zone, cn->cn_pnbuf);
cn->cn_pnbuf = '\0';
cn->cn_pnbuf = NULL;
}
return (error);

View File

@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* @(#)union_subr.c 8.20 (Berkeley) 5/20/95
* $Id: union_subr.c,v 1.32 1998/11/03 08:01:48 peter Exp $
* $Id: union_subr.c,v 1.33 1998/11/15 15:33:51 bde Exp $
*/
#include <sys/param.h>
@ -774,7 +774,7 @@ union_relookup(um, dvp, vpp, cnp, cn, path, pathlen)
vrele(dvp);
else {
zfree(namei_zone, cn->cn_pnbuf);
cn->cn_pnbuf = '\0';
cn->cn_pnbuf = NULL;
}
return (error);