From 695800da5d26cd12d5dfa0a93d0ef1eed0533c78 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Thu, 14 Jun 2012 16:38:58 +0800 Subject: [PATCH] Modules/LVM - Fixed uninitalised value --- KernelLand/Modules/Storage/LVM/volumes.c | 1 + 1 file changed, 1 insertion(+) 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 -- 2.20.1