mirror of https://github.com/xfarrow/dircomp.git
Update dircomp.c
This commit is contained in:
parent
53ca658503
commit
93cff8b28d
|
@ -109,6 +109,7 @@ bool analyze_directories(char* directory_to_analyze_1, char* directory_to_analyz
|
||||||
{
|
{
|
||||||
printf("Couldn't open %s, %s, or both. The directories will be considered to be not equal.\n",
|
printf("Couldn't open %s, %s, or both. The directories will be considered to be not equal.\n",
|
||||||
directory_to_analyze_1, directory_to_analyze_2);
|
directory_to_analyze_1, directory_to_analyze_2);
|
||||||
|
perror("Detailed error");
|
||||||
free(directory_to_analyze_1);
|
free(directory_to_analyze_1);
|
||||||
free(directory_to_analyze_2);
|
free(directory_to_analyze_2);
|
||||||
return false;
|
return false;
|
||||||
|
@ -117,6 +118,8 @@ bool analyze_directories(char* directory_to_analyze_1, char* directory_to_analyz
|
||||||
if(strcmp(directory_to_analyze_1, directory_to_analyze_2) == 0){
|
if(strcmp(directory_to_analyze_1, directory_to_analyze_2) == 0){
|
||||||
free(directory_to_analyze_1);
|
free(directory_to_analyze_1);
|
||||||
free(directory_to_analyze_2);
|
free(directory_to_analyze_2);
|
||||||
|
closedir(directory1);
|
||||||
|
closedir(directory2);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue