mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 01:39:30 +00:00
GCC 3.3.3 detects uninitialized variable where it is not the case. Workaround problem by moving initialization at the top of function.
svn path=/trunk/; revision=14559
This commit is contained in:
parent
322cd3e113
commit
366a70a52a
1 changed files with 2 additions and 2 deletions
|
@ -216,7 +216,8 @@ SerenumDetectPnpDevice(
|
|||
ULONG Size;
|
||||
ULONG Msr, Purge;
|
||||
ULONG i;
|
||||
BOOLEAN BufferContainsBeginId, BufferContainsEndId;
|
||||
BOOLEAN BufferContainsBeginId = FALSE;
|
||||
BOOLEAN BufferContainsEndId = FALSE;
|
||||
SERIAL_LINE_CONTROL Lcr;
|
||||
SERIAL_TIMEOUTS Timeouts;
|
||||
SERIALPERF_STATS PerfStats;
|
||||
|
@ -325,7 +326,6 @@ SerenumCollectPnpComDeviceId:
|
|||
NULL, 0, &PerfStats, &Size);
|
||||
if (!NT_SUCCESS(Status)) return Status;
|
||||
if (PerfStats.FrameErrorCount + PerfStats.ParityErrorCount != 0) goto SerenumConnectIdle;
|
||||
BufferContainsBeginId = BufferContainsEndId = FALSE;
|
||||
for (i = 0; i < TotalBytesReceived; i++)
|
||||
{
|
||||
if (Buffer[i] == BEGIN_ID) BufferContainsBeginId = TRUE;
|
||||
|
|
Loading…
Reference in a new issue