Blame SOURCES/0015-Initialize-entries-before-we-pass-it-to-another-func.patch
|
|
f2fa6b |
From 4dbef508ab6359e8ca14df53b83f970bdeec17ba Mon Sep 17 00:00:00 2001
|
|
|
f2fa6b |
From: Peter Jones <pjones@redhat.com>
|
|
|
f2fa6b |
Date: Fri, 15 Nov 2013 09:24:01 -0500
|
|
|
e97c83 |
Subject: [PATCH 15/74] Initialize entries before we pass it to another
|
|
|
f2fa6b |
function.
|
|
|
f2fa6b |
|
|
|
f2fa6b |
Coverity scan noticed that entries is uninitialized when we pass its
|
|
|
f2fa6b |
location to another function.
|
|
|
f2fa6b |
|
|
|
f2fa6b |
Signed-off-by: Peter Jones <pjones@redhat.com>
|
|
|
f2fa6b |
---
|
|
|
f2fa6b |
lib/simple_file.c | 2 +-
|
|
|
f2fa6b |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
f2fa6b |
|
|
|
f2fa6b |
diff --git a/lib/simple_file.c b/lib/simple_file.c
|
|
|
f2fa6b |
index 3af0ec8..d345d87 100644
|
|
|
f2fa6b |
--- a/lib/simple_file.c
|
|
|
f2fa6b |
+++ b/lib/simple_file.c
|
|
|
f2fa6b |
@@ -415,7 +415,7 @@ simple_file_selector(EFI_HANDLE *im, CHAR16 **title, CHAR16 *name,
|
|
|
f2fa6b |
CHAR16 *filter, CHAR16 **result)
|
|
|
f2fa6b |
{
|
|
|
f2fa6b |
EFI_STATUS status;
|
|
|
f2fa6b |
- CHAR16 **entries;
|
|
|
f2fa6b |
+ CHAR16 **entries = NULL;
|
|
|
f2fa6b |
EFI_FILE_INFO *dmp;
|
|
|
f2fa6b |
int count, select, len;
|
|
|
f2fa6b |
CHAR16 *newname, *selected;
|
|
|
f2fa6b |
--
|
|
|
e97c83 |
1.9.3
|
|
|
f2fa6b |
|