diff options
author | Juli Mallett <jmallett@FreeBSD.org> | 2002-08-11 15:37:10 +0000 |
---|---|---|
committer | Juli Mallett <jmallett@FreeBSD.org> | 2002-08-11 15:37:10 +0000 |
commit | e079a00a779c67f00be497243751910fc97936cd (patch) | |
tree | 0928435d2262014e6a9d3a22145e513ce88b6ab8 /lib | |
parent | 933abef0c402465c46cd460067350f8e23337381 (diff) | |
download | src-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')
-rw-r--r-- | lib/libufs/type.c | 1 |
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); |