diff options
author | eivind <eivind@FreeBSD.org> | 1998-12-07 02:47:46 +0000 |
---|---|---|
committer | eivind <eivind@FreeBSD.org> | 1998-12-07 02:47:46 +0000 |
commit | cae573fc343f5ecc165e1ddbb5605f12cecee146 (patch) | |
tree | a89503de79d137f2702661e3825dbac3dfef9068 | |
parent | d5e7be6625903d2130e41ab798985d4cbab4f0fe (diff) | |
download | FreeBSD-src-cae573fc343f5ecc165e1ddbb5605f12cecee146.zip FreeBSD-src-cae573fc343f5ecc165e1ddbb5605f12cecee146.tar.gz |
'\0' is the most ugly NULL pointer constant I've ever seen in real code.
-rw-r--r-- | sys/fs/unionfs/union_subr.c | 4 | ||||
-rw-r--r-- | sys/miscfs/union/union_subr.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/fs/unionfs/union_subr.c b/sys/fs/unionfs/union_subr.c index 18d79b5..4e7089e 100644 --- a/sys/fs/unionfs/union_subr.c +++ b/sys/fs/unionfs/union_subr.c @@ -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); diff --git a/sys/miscfs/union/union_subr.c b/sys/miscfs/union/union_subr.c index 18d79b5..4e7089e 100644 --- a/sys/miscfs/union/union_subr.c +++ b/sys/miscfs/union/union_subr.c @@ -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); |