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:
jmallett 2002-08-11 15:37:10 +00:00
parent b5dea766b9
commit 0359a25e71

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