diff options
| author | Peter Jones <pjones@redhat.com> | 2013-11-15 09:24:01 -0500 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2013-11-21 11:48:24 -0500 |
| commit | 4dbef508ab6359e8ca14df53b83f970bdeec17ba (patch) | |
| tree | cc7d46c5700dd56b65a208c44591ec05648a6e82 | |
| parent | af25679e166da9bd32a0ed7fbf67a408dda7f71a (diff) | |
| download | efi-boot-shim-4dbef508ab6359e8ca14df53b83f970bdeec17ba.tar.gz efi-boot-shim-4dbef508ab6359e8ca14df53b83f970bdeec17ba.zip | |
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>
| -rw-r--r-- | lib/simple_file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/simple_file.c b/lib/simple_file.c index 3af0ec8d..d345d870 100644 --- a/lib/simple_file.c +++ b/lib/simple_file.c @@ -415,7 +415,7 @@ simple_file_selector(EFI_HANDLE *im, CHAR16 **title, CHAR16 *name, CHAR16 *filter, CHAR16 **result) { EFI_STATUS status; - CHAR16 **entries; + CHAR16 **entries = NULL; EFI_FILE_INFO *dmp; int count, select, len; CHAR16 *newname, *selected; |
