Skip to content

Commit f02e7d1

Browse files
dont error on zero byte file just skip it
1 parent 98d1da8 commit f02e7d1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/installer/recursive_file_copy.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ bool copy_file(const char* source, const char* destination) {
4141

4242
return true;
4343
}
44-
error_page("Could not get info for '%s' or file is empty\n", source);
44+
if (!info) {
45+
error_page("Could not get info for '%s'\n", source);
46+
}
4547
return false;
4648
}
4749

0 commit comments

Comments
 (0)