Get rid of the maybe uninitialized warning.

This commit is contained in:
Arzhan Kinzhalin
2017-09-19 18:49:02 +00:00
parent e9fd24b763
commit b3bc61b254
+2 -1
View File
@@ -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) {