Skip to content

Commit

Permalink
Add a dot
Browse files Browse the repository at this point in the history
  • Loading branch information
RobDangerous committed Oct 4, 2023
1 parent 5a3b56b commit f1fc3b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ directory open_dir(const char *dirname) {
file read_next_file(directory *dir) {
struct dirent *entry = readdir(dir->handle);

while (entry->d_name != NULL && (strcmp(entry->d_name, ".") == 0 || strcmp(entry->d_name, ".") == 0)) {
while (entry->d_name != NULL && (strcmp(entry->d_name, ".") == 0 || strcmp(entry->d_name, "..") == 0)) {
entry = readdir(dir->handle);
}

Expand Down

0 comments on commit f1fc3b4

Please sign in to comment.