diff --git a/uboot-mtk-20250711/env/mtd.c b/uboot-mtk-20250711/env/mtd.c index ad263ed4b..b26ee8098 100644 --- a/uboot-mtk-20250711/env/mtd.c +++ b/uboot-mtk-20250711/env/mtd.c @@ -201,7 +201,7 @@ static int env_mtd_erase(void) { struct mtd_info *mtd_env; u32 sect_size, sect_num; - char *saved_buf, *tmp; + char *saved_buf = NULL, *tmp; struct erase_info ei; size_t ret_len; int remaining;