mirror of
https://github.com/clearlinux/clr-boot-manager.git
synced 2026-10-03 23:38:21 +00:00
Get rid of the maybe uninitialized warning.
This commit is contained in:
@@ -46,7 +46,8 @@ static int read_boot_recs(void) {
|
||||
int res;
|
||||
efi_guid_t *guid = NULL;
|
||||
char *name = NULL;
|
||||
boot_rec_t *p, *c;
|
||||
boot_rec_t *p = NULL,
|
||||
*c;
|
||||
int i = 0;
|
||||
|
||||
while ((res = efi_get_next_variable_name(&guid, &name)) > 0) {
|
||||
|
||||
Reference in New Issue
Block a user