diff --git a/reactos/ntoskrnl/io/rawfs.c b/reactos/ntoskrnl/io/rawfs.c index 8a44f563bdd..a5b54ce86a5 100755 --- a/reactos/ntoskrnl/io/rawfs.c +++ b/reactos/ntoskrnl/io/rawfs.c @@ -1,4 +1,4 @@ -/* $Id: rawfs.c,v 1.7 2003/11/27 00:50:22 gdalsnes Exp $ +/* $Id: rawfs.c,v 1.8 2003/12/14 17:56:22 hbirr Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -526,7 +526,7 @@ RawFsWrite(IN PRAWFS_IRP_CONTEXT IrpContext) static NTSTATUS RawFsMount(IN PRAWFS_IRP_CONTEXT IrpContext) { - PRAWFS_GLOBAL_DATA GlobalData; + PRAWFS_GLOBAL_DATA GlobalData = NULL; PDEVICE_OBJECT DeviceObject = NULL; PRAWFS_DEVICE_EXTENSION DeviceExt = NULL; PRAWFS_FCB VolumeFcb = NULL; diff --git a/reactos/ntoskrnl/io/xhaldrv.c b/reactos/ntoskrnl/io/xhaldrv.c index 345d38f8fd9..75c6013c5d7 100644 --- a/reactos/ntoskrnl/io/xhaldrv.c +++ b/reactos/ntoskrnl/io/xhaldrv.c @@ -1,4 +1,4 @@ -/* $Id: xhaldrv.c,v 1.40 2003/08/25 11:57:22 ekohl Exp $ +/* $Id: xhaldrv.c,v 1.41 2003/12/14 17:56:22 hbirr Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -686,7 +686,7 @@ xHalIoReadPartitionTable(PDEVICE_OBJECT DeviceObject, { LARGE_INTEGER RealPartitionOffset; ULONGLONG PartitionOffset; - ULONGLONG nextPartitionOffset; + ULONGLONG nextPartitionOffset = 0LL; ULONGLONG containerOffset; NTSTATUS Status; PPARTITION_SECTOR PartitionSector; @@ -926,7 +926,7 @@ xHalIoSetPartitionInformation(IN PDEVICE_OBJECT DeviceObject, PPARTITION_SECTOR PartitionSector; LARGE_INTEGER RealPartitionOffset; ULONGLONG PartitionOffset; - ULONGLONG nextPartitionOffset; + ULONGLONG nextPartitionOffset = 0LL; ULONGLONG containerOffset; NTSTATUS Status; ULONG i; @@ -1105,7 +1105,7 @@ xHalIoWritePartitionTable(IN PDEVICE_OBJECT DeviceObject, PPARTITION_SECTOR PartitionSector; LARGE_INTEGER RealPartitionOffset; ULONGLONG PartitionOffset; - ULONGLONG NextPartitionOffset; + ULONGLONG NextPartitionOffset = 0LL; ULONGLONG ContainerOffset; BOOLEAN ContainerEntry; DISK_MANAGER DiskManager; diff --git a/reactos/ntoskrnl/mm/npool.c b/reactos/ntoskrnl/mm/npool.c index 4f2ea6eda8c..b96b02033cf 100644 --- a/reactos/ntoskrnl/mm/npool.c +++ b/reactos/ntoskrnl/mm/npool.c @@ -1,4 +1,4 @@ -/* $Id: npool.c,v 1.78 2003/12/13 21:11:53 gvg Exp $ +/* $Id: npool.c,v 1.79 2003/12/14 17:56:23 hbirr Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -253,7 +253,7 @@ void avl_insert (PNODE * root, PNODE n, int (*compare)(PNODE, PNODE)) PNODE y; /* Top node to update balance factor, and parent. */ PNODE p, q; /* Iterator, and parent. */ PNODE w; /* New root of rebalanced subtree. */ - int dir; /* Direction to descend. */ + int dir = 0; /* Direction to descend. */ n->link[0] = n->link[1] = n->parent = NULL; n->balance = 0; @@ -805,8 +805,8 @@ MiDebugDumpNonPagedPoolStats(BOOLEAN NewOnly) ULONG i; BLOCK_HDR* current; ULONG CurrentTag; - ULONG CurrentNrBlocks; - ULONG CurrentSize; + ULONG CurrentNrBlocks = 0; + ULONG CurrentSize = 0; ULONG TotalBlocks; ULONG TotalSize; ULONG Size; @@ -1277,7 +1277,7 @@ grow_block(BLOCK_HDR* blk, PVOID end) static BLOCK_HDR* get_block(unsigned int size, unsigned long alignment) { BLOCK_HDR *blk, *current, *previous = NULL, *next = NULL, *best = NULL; - ULONG previous_size, current_size, next_size, new_size; + ULONG previous_size = 0, current_size, next_size = 0, new_size; PVOID end; PVOID addr, aligned_addr; PNODE p; diff --git a/reactos/ntoskrnl/mm/section.c b/reactos/ntoskrnl/mm/section.c index fe7a2ed12bd..a17999da1d2 100644 --- a/reactos/ntoskrnl/mm/section.c +++ b/reactos/ntoskrnl/mm/section.c @@ -16,7 +16,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -/* $Id: section.c,v 1.135 2003/11/24 14:51:46 ekohl Exp $ +/* $Id: section.c,v 1.136 2003/12/14 17:56:22 hbirr Exp $ * * PROJECT: ReactOS kernel * FILE: ntoskrnl/mm/section.c @@ -3449,7 +3449,7 @@ MmUnmapViewOfSection(PEPROCESS Process, ULONG NrSegments; PMM_IMAGE_SECTION_OBJECT ImageSectionObject; PMM_SECTION_SEGMENT SectionSegments; - PVOID ImageBaseAddress; + PVOID ImageBaseAddress = 0; PMM_SECTION_SEGMENT Segment; Segment = MemoryArea->Data.SectionData.Segment;