Skip to content

Commit

Permalink
Reduce scope of variable for simplicity
Browse files Browse the repository at this point in the history
  • Loading branch information
bonsaiviking committed Sep 23, 2023
1 parent 7bee21d commit c11ef2c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packetWin7/npf/npf/Read.c
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,6 @@ NPF_DoTap(
SINGLE_LIST_ENTRY NBLCopiesHead;
NBLCopiesHead.Next = NULL;
PNPF_SRC_NB pSrcNB = NULL;
PSINGLE_LIST_ENTRY pNBCopiesEntry = NULL;
LARGE_INTEGER SystemTime = { 0 }, PerfCount = { 0 };
PLIST_ENTRY CurrFilter;
PNPF_CAP_DATA pCaptures = NULL;
Expand Down Expand Up @@ -804,7 +803,7 @@ NPF_DoTap(
pNBLCopy = CONTAINING_RECORD(Curr, NPF_NBL_COPY, NBLCopyEntry);
Curr = Curr->Next;

pNBCopiesEntry = pNBLCopy->NBCopiesHead.Next;
PSINGLE_LIST_ENTRY pNBCopiesEntry = pNBLCopy->NBCopiesHead.Next;
while (pNBCopiesEntry != NULL)
{
pSrcNB = CONTAINING_RECORD(pNBCopiesEntry, NPF_SRC_NB, CopiesEntry);
Expand Down

0 comments on commit c11ef2c

Please sign in to comment.