summaryrefslogtreecommitdiffstats
path: root/recipes-bsp/efilinux/efilinux/0002-initialize-char-pointers.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-bsp/efilinux/efilinux/0002-initialize-char-pointers.patch')
-rw-r--r--recipes-bsp/efilinux/efilinux/0002-initialize-char-pointers.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/recipes-bsp/efilinux/efilinux/0002-initialize-char-pointers.patch b/recipes-bsp/efilinux/efilinux/0002-initialize-char-pointers.patch
new file mode 100644
index 0000000..127c187
--- /dev/null
+++ b/recipes-bsp/efilinux/efilinux/0002-initialize-char-pointers.patch
@@ -0,0 +1,33 @@
1From 49053e4ff0f3550d019cdad8a93677c18fc69791 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 12 Aug 2017 10:35:09 -0700
4Subject: [PATCH 2/2] initialize char pointers
5
6Clang complains about using them without initializing
7
8Signed-off-by: Khem Raj <raj.khem@gmail.com>
9---
10Upstream-Status: Pending
11
12 entry.c | 4 ++--
13 1 file changed, 2 insertions(+), 2 deletions(-)
14
15diff --git a/entry.c b/entry.c
16index 0aa6cdd..23ba51e 100644
17--- a/entry.c
18+++ b/entry.c
19@@ -402,9 +402,9 @@ efi_main(EFI_HANDLE image, EFI_SYSTEM_TABLE *_table)
20 WCHAR *error_buf;
21 EFI_STATUS err;
22 EFI_LOADED_IMAGE *info;
23- CHAR16 *name, *options;
24+ CHAR16 *name = NULL, *options;
25 UINT32 options_size;
26- char *cmdline;
27+ char *cmdline = NULL;
28
29 InitializeLib(image, _table);
30 sys_table = _table;
31--
322.14.1
33