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.
This commit is contained in:
Juli Mallett 2002-08-11 15:37:10 +00:00
parent 933abef0c4
commit e079a00a77

View File

@ -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);