From: John Hodge Date: Thu, 14 Jun 2012 08:38:58 +0000 (+0800) Subject: Modules/LVM - Fixed uninitalised value X-Git-Tag: rel0.15~611^2~61 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=695800da5d26cd12d5dfa0a93d0ef1eed0533c78;p=tpg%2Facess2.git Modules/LVM - Fixed uninitalised value --- diff --git a/KernelLand/Modules/Storage/LVM/volumes.c b/KernelLand/Modules/Storage/LVM/volumes.c index 567d26f8..fafa1f3d 100644 --- a/KernelLand/Modules/Storage/LVM/volumes.c +++ b/KernelLand/Modules/Storage/LVM/volumes.c @@ -55,6 +55,7 @@ int LVM_AddVolume(const tLVM_VolType *Type, const char *Name, void *Ptr, size_t real_vol->BlockCount = BlockCount; real_vol->nSubVolumes = dummy_vol.nSubVolumes; real_vol->SubVolumes = (void*)( real_vol->Name + strlen(Name) + 1 ); + real_vol->BlockSize = BlockSize; strcpy(real_vol->Name, Name); memset(real_vol->SubVolumes, 0, sizeof(tLVM_SubVolume*) * real_vol->nSubVolumes); // - VFS Nodes