summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/scandir_win32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scandir_win32.c b/src/scandir_win32.c
index 190af8bb9..75b0430bf 100644
--- a/src/scandir_win32.c
+++ b/src/scandir_win32.c
@@ -44,7 +44,7 @@ int fl_scandir(const char *dirname, struct dirent ***namelist,
/* #warning FIXME This probably needs to be MORE UTF8 aware now */
/* #endif */
for (d = findIn; *d; d++) if (*d=='/') *d='\\';
- if ((len==0)) { strcpy(findIn, ".\\*"); }
+ if (len==0) { strcpy(findIn, ".\\*"); }
if ((len==2)&&findIn[1]==':'&&isalpha(findIn[0])) { *d++ = '\\'; *d = 0; }
if ((len==1)&& (d[-1]=='.')) { strcpy(findIn, ".\\*"); is_dir = 1; }
if ((len>0) && (d[-1]=='\\')) { *d++ = '*'; *d = 0; is_dir = 1; }