chore: fix almost *ALL* warnings.
[lunaix-os.git] / lunaix-os / kernel / block / blkpart_gpt.c
index 22bb48b6d7bb61b9e9afd89d1fc8718446af9611..85c87e7e51e5a973d99fb08d60587e0c6f2eac12 100644 (file)
@@ -25,7 +25,7 @@ blkpart_parse(struct device* master, struct gpt_header* header)
     if (!bdev)
         return ENODEV;
 
-    int errno;
+    int errno = 0;
     u32_t ent_lba = (u32_t)header->ents_lba;
     struct gpt_entry* ents_parial = (struct gpt_entry*)valloc(GPT_BLKSIZE);