8000 fix walkdirectory in linux · ChatScript/ChatScript@55446da · GitHub
[go: up one dir, main page]

Skip to content

Commit 55446da

Browse files
committed
fix walkdirectory in linux
1 parent 2085d88 commit 55446da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SRC/os.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1298,7 +1298,7 @@ void WalkDirectory(char* directory,FILEWALK function, uint64 flags,bool recursiv
12981298
{
12991299
sprintf(name,(char*)"%s/%s",directory,file);
13001300
(*function)(name,flags); // fails if directory
1301-
if (recursive && isDirectory(xname)) seendirs = true;
1301+
if (recursive && isDirectory(name)) seendirs = true;
13021302
}
13031303
}
13041304

0 commit comments

Comments
 (0)
0