From b65763bc10a7b409339df766beb5f9ff77786665 Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Fri, 18 Mar 2022 20:17:17 -0400 Subject: [PATCH] [COV] fix uninitialized warning Change-Id: Ib526aeac51d626d02b073b26efd3020115641caa --- firmware/drivers/fat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/drivers/fat.c b/firmware/drivers/fat.c index 0c02c8224f..30d16f3666 100644 --- a/firmware/drivers/fat.c +++ b/firmware/drivers/fat.c @@ -1698,8 +1698,8 @@ static int add_dir_entry(struct bpb *fat_bpb, struct fat_filestr *parentstr, int rc; unsigned char basisname[11], shortname[11]; - int n; int entries_needed; + int n = -1; unsigned long ucslen = 0; if (is_dotdir_name(name) && (attr & ATTR_DIRECTORY))