Update dircomp.c

This commit is contained in:
alessandro ferro 2023-04-13 09:49:03 +02:00
parent a53f763735
commit 244ff67d69
1 changed files with 7 additions and 7 deletions

View File

@ -92,7 +92,7 @@ void print_files_in_directory(char* directory, struct arguments arguments){
} }
// is directory // is directory
if (dir->d_type == DT_DIR) if (dir -> d_type == DT_DIR)
{ {
if(arguments.r == true) if(arguments.r == true)
print_files_in_directory(dir -> d_name, arguments); // todo, pass the pointer to reduce memory usage print_files_in_directory(dir -> d_name, arguments); // todo, pass the pointer to reduce memory usage