diff options
Diffstat (limited to 'src/shared')
-rw-r--r-- | src/shared/efivars.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/shared/efivars.c b/src/shared/efivars.c index 1d5b6f9e72..c015b16857 100644 --- a/src/shared/efivars.c +++ b/src/shared/efivars.c @@ -384,7 +384,8 @@ int efi_get_boot_options(uint16_t **options) { list[count ++] = id; } - qsort(list, count, sizeof(uint16_t), cmp_uint16); + if (list) + qsort(list, count, sizeof(uint16_t), cmp_uint16); *options = list; return count; |