Initialize entries before we pass it to another function.

Coverity scan noticed that entries is uninitialized when we pass its
location to another function.

Signed-off-by: Peter Jones <pjones@redhat.com>
This commit is contained in:
Peter Jones 2013-11-15 09:24:01 -05:00
parent af25679e16
commit 4dbef508ab

View File

@ -415,7 +415,7 @@ simple_file_selector(EFI_HANDLE *im, CHAR16 **title, CHAR16 *name,
CHAR16 *filter, CHAR16 **result) CHAR16 *filter, CHAR16 **result)
{ {
EFI_STATUS status; EFI_STATUS status;
CHAR16 **entries; CHAR16 **entries = NULL;
EFI_FILE_INFO *dmp; EFI_FILE_INFO *dmp;
int count, select, len; int count, select, len;
CHAR16 *newname, *selected; CHAR16 *newname, *selected;