Merge pull request #1 from warrenlc/patch-1

Update simple-ls-ver2.c to close 'd' before returning
This commit is contained in:
Jack-Benny Persson 2023-03-26 20:23:14 +02:00 committed by GitHub
commit b2c9dc7304
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,7 +62,9 @@ int main(int argc, char **argv)
printf("%s\n", dir->d_name);
}
}
return 0;
closedir(d);
return 0;
}
void printUsage(char *arg)