aboutsummaryrefslogtreecommitdiff
path: root/lib/libufs/type.c
diff options
context:
space:
mode:
authorJuli Mallett <jmallett@FreeBSD.org>2002-08-11 15:37:10 +0000
committerJuli Mallett <jmallett@FreeBSD.org>2002-08-11 15:37:10 +0000
commite079a00a779c67f00be497243751910fc97936cd (patch)
tree0928435d2262014e6a9d3a22145e513ce88b6ab8 /lib/libufs/type.c
parent933abef0c402465c46cd460067350f8e23337381 (diff)
downloadsrc-e079a00a779c67f00be497243751910fc97936cd.tar.gz
src-e079a00a779c67f00be497243751910fc97936cd.zip
Initialise disk->d_ufs so that in sblock.c it's always initialised
(unless someone tries to use libufs support functions without using _fillout or _ctor to construct a uufsd.) Obtained from: jmallett_libufs Perforce branch.
Notes
Notes: svn path=/head/; revision=101687
Diffstat (limited to 'lib/libufs/type.c')
-rw-r--r--lib/libufs/type.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libufs/type.c b/lib/libufs/type.c
index 59b8f8c4cc30..0b16c801bbf5 100644
--- a/lib/libufs/type.c
+++ b/lib/libufs/type.c
@@ -108,6 +108,7 @@ ufs_disk_fillout(struct uufsd *disk, const char *name)
disk->d_inomin = 0;
disk->d_inomax = 0;
disk->d_name = name;
+ disk->d_ufs = 0;
if (sbread(disk) == -1) {
DEBUG(NULL);