summaryrefslogtreecommitdiffstats
path: root/src/fat_dir.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2009-04-08 08:43:16 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2009-04-08 08:43:16 +0200
commitaef8cae536f4064f6927c449db4d3d40b4251806 (patch)
tree3ce07bbd457f8f478e8e9a4910b19691862d5e56 /src/fat_dir.c
parent0632f445a834e57a63904d7adbb08b0588d96e24 (diff)
FAT: Fix the check when listing deleted "." and ".." entries
Diffstat (limited to 'src/fat_dir.c')
-rw-r--r--src/fat_dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fat_dir.c b/src/fat_dir.c
index 55c7570..d1e1bd6 100644
--- a/src/fat_dir.c
+++ b/src/fat_dir.c
@@ -242,7 +242,7 @@ RecEnd:
status=FILE_STATUS_DELETED;
if((de->attr&ATTR_DIR)==ATTR_DIR &&
((dir_list==NULL && unicode[1]=='\0') ||
- (dir_list->next==NULL && unicode[1]=='.' && unicode[2]=='\0')))
+ (dir_list!=NULL && dir_list->next==NULL && unicode[1]=='.' && unicode[2]=='\0')))
unicode[0]='.'; /* "." and ".." are the first two entries */
else
unicode[0]='_';