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