Skip to content
Snippets Groups Projects
Commit 9337cdc9 authored by Yorhel's avatar Yorhel
Browse files

Test for read error while reading the --exclude-from file

Fixes #171
parent a216bc2d
No related branches found
No related tags found
No related merge requests found
...@@ -68,8 +68,9 @@ int exclude_addfile(char *file) { ...@@ -68,8 +68,9 @@ int exclude_addfile(char *file) {
exclude_add(buf); exclude_add(buf);
} }
len = ferror(f);
fclose(f); fclose(f);
return 0; return len;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment