Skip to content

Commit 6a3e827

Browse files
Merge pull request #4 from weston-embedded/bugfix/issue-3
Update fs_fat.c
2 parents 4ee1f4f + 7b91fe4 commit 6a3e827

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

FAT/fs_fat.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5684,9 +5684,8 @@ static void FS_FAT_ChkFile (FS_VOL *p_vol,
56845684

56855685
#if (FS_TRACE_LEVEL >= TRACE_LEVEL_INFO)
56865686
if (end_of_file == DEF_NO) { /* If EOF not found, too many clus's in chain ... */
5687-
if ((file_size != 0) || (file_clus_tot != 0)) { /* Skip misleading message for 0-byte files w/o cluster */
5687+
if ((file_size != 0) && (file_clus_tot != 0)) { /* Skip misleading message for 0-byte files w/o cluster */
56885688
FS_TRACE_INFO(("FS_FAT_ChkFile(): Extra clusters linked to file.\r\n"));
5689-
/* ... #### del extra clus's. */
56905689
}
56915690
}
56925691
#endif

0 commit comments

Comments
 (0)