Re: [edk2-devel] [PATCH v1 1/2] ShellPkg/UefiShellCommandLib: suppress incorrect gcc warning

2021-05-14 Thread Laszlo Ersek
On 05/12/21 00:56, Sergei Dmitrouk wrote: > `Dupes` is used only if `Duplicates != NULL` and function is left if > allocation of memory for `Dupes` fails, so it can't be used > uninitialized. > > Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=3228 > Cc: Ray Ni > Cc: Zhichao Gao > Signed-off

[edk2-devel] [PATCH v1 1/2] ShellPkg/UefiShellCommandLib: suppress incorrect gcc warning

2021-05-11 Thread Sergei Dmitrouk
`Dupes` is used only if `Duplicates != NULL` and function is left if allocation of memory for `Dupes` fails, so it can't be used uninitialized. Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=3228 Cc: Ray Ni Cc: Zhichao Gao Signed-off-by: Sergei Dmitrouk --- ShellPkg/Library/UefiShellComma