summaryrefslogtreecommitdiff
path: root/src/check.c
diff options
context:
space:
mode:
authorJinWang An <jinwang.an@samsung.com>2022-12-26 13:14:06 +0900
committerJinWang An <jinwang.an@samsung.com>2022-12-26 13:14:06 +0900
commit43faab009aefa5beeaa7c8abc6dcca705507ace7 (patch)
treef38dc64afc851fbf15ee3be966634eb11c9d2113 /src/check.c
parentc32e05cf546485e759f6280adb5345785a9c1dfb (diff)
downloaddosfstools-43faab009aefa5beeaa7c8abc6dcca705507ace7.tar.gz
dosfstools-43faab009aefa5beeaa7c8abc6dcca705507ace7.tar.bz2
dosfstools-43faab009aefa5beeaa7c8abc6dcca705507ace7.zip
Imported Upstream version 3.0.27upstream/3.0.27
Diffstat (limited to 'src/check.c')
-rw-r--r--src/check.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check.c b/src/check.c
index a330caf..e8aaf92 100644
--- a/src/check.c
+++ b/src/check.c
@@ -959,9 +959,9 @@ static void add_file(DOS_FS * fs, DOS_FILE *** chain, DOS_FILE * parent,
fs_read(offset, sizeof(DIR_ENT), &de);
else {
/* Construct a DIR_ENT for the root directory */
+ memset(&de, 0, sizeof de);
memcpy(de.name, " ", MSDOS_NAME);
de.attr = ATTR_DIR;
- de.size = de.time = de.date = 0;
de.start = htole16(fs->root_cluster & 0xffff);
de.starthi = htole16((fs->root_cluster >> 16) & 0xffff);
}