Blame SOURCES/0013-Handle-the-case-where-there-are-no-EFI-variables.patch
|
|
5fb29d |
From 54879fe911ed1b57e15d641ff8c6656e915f3f50 Mon Sep 17 00:00:00 2001
|
|
|
5fb29d |
From: Peter Jones <pjones@redhat.com>
|
|
|
5fb29d |
Date: Wed, 10 Sep 2014 16:22:21 -0400
|
|
|
5fb29d |
Subject: [PATCH 13/18] Handle the case where there are no EFI variables.
|
|
|
5fb29d |
|
|
|
5fb29d |
So we're on an EFI machine with no variables, eh covscan?
|
|
|
5fb29d |
|
|
|
5fb29d |
Signed-off-by: Peter Jones <pjones@redhat.com>
|
|
|
5fb29d |
---
|
|
|
5fb29d |
src/lib/efi.c | 2 +-
|
|
|
5fb29d |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
5fb29d |
|
|
|
5fb29d |
diff --git a/src/lib/efi.c b/src/lib/efi.c
|
|
|
5fb29d |
index f604a1a..7cdc884 100644
|
|
|
5fb29d |
--- a/src/lib/efi.c
|
|
|
5fb29d |
+++ b/src/lib/efi.c
|
|
|
5fb29d |
@@ -112,7 +112,7 @@ read_var_names(filter_t filter, char ***namelist)
|
|
|
5fb29d |
|
|
|
5fb29d |
newlist = tmp;
|
|
|
5fb29d |
}
|
|
|
5fb29d |
- if (rc == 0) {
|
|
|
5fb29d |
+ if (rc == 0 && newlist) {
|
|
|
5fb29d |
qsort(newlist, nentries, sizeof (char *), cmpstringp);
|
|
|
5fb29d |
*namelist = newlist;
|
|
|
5fb29d |
} else {
|
|
|
5fb29d |
--
|
|
|
5fb29d |
1.9.3
|
|
|
5fb29d |
|