diff options
author | jmallett <jmallett@FreeBSD.org> | 2002-08-11 15:37:10 +0000 |
---|---|---|
committer | jmallett <jmallett@FreeBSD.org> | 2002-08-11 15:37:10 +0000 |
commit | 93139367697154876a88b371decacc75a9121f8b (patch) | |
tree | 0928435d2262014e6a9d3a22145e513ce88b6ab8 /lib | |
parent | fdf494091a5d4b5f38aa284e53739a3444b534c2 (diff) | |
download | FreeBSD-src-93139367697154876a88b371decacc75a9121f8b.zip FreeBSD-src-93139367697154876a88b371decacc75a9121f8b.tar.gz |
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.
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 59b8f8c..0b16c80 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); |