chiark / gitweb /
nspawn: add --image= switch to boot GPT disk images that follow the Discoverable...
[elogind.git] / src / boot / boot-efi.c
index 1c80126cc5eed1fc7d12aaec15586b426e95cf57..bd0c59bd5aef936d95507eff0b77c7d6acc31c47 100644 (file)
@@ -50,7 +50,7 @@ static char *tilt_slashes(char *s) {
 }
 
 static int get_boot_entries(struct boot_info *info) {
-        uint16_t *list;
+        uint16_t *list = NULL;
         int i, n;
         int err = 0;
 
@@ -69,7 +69,7 @@ static int get_boot_entries(struct boot_info *info) {
                 info->fw_entries = e;
 
                 e = &info->fw_entries[info->fw_entries_count];
-                memset(e, 0, sizeof(struct boot_info_entry));
+                memzero(e, sizeof(struct boot_info_entry));
                 e->order = -1;
 
                 err = efi_get_boot_option(list[i], &e->title, &e->part_uuid, &e->path);