Skip to content

Commit

Permalink
Changed check to compare to 0 instead of NULL
Browse files Browse the repository at this point in the history
  • Loading branch information
kenlautner committed Jul 12, 2023
1 parent f72ac02 commit 548cff9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MdeModulePkg/Universal/SetupBrowserDxe/Expression.c
Original file line number Diff line number Diff line change
Expand Up @@ -1174,9 +1174,9 @@ IfrToString (
SrcBuf = GetBufferForValue (&Value);
SrcLen = GetLengthForValue (&Value);
// MU_CHANGE [BEGIN] - CodeQL change
if ((SrcBuf == NULL) || (SrcLen == NULL)) {
if ((SrcBuf == NULL) || (SrcLen == 0)) {
ASSERT (SrcBuf != NULL);
ASSERT (SrcLen != NULL);
ASSERT (SrcLen != 0);
return EFI_NOT_FOUND;
}

Expand Down

0 comments on commit 548cff9

Please sign in to comment.