Use C++11 value-initialization instead of { 0 }

Removes a warning in GCC.
This commit is contained in:
Fabian Homborg 2019-05-29 20:46:30 +02:00
parent 1259b32ecc
commit 6617c4d79e

View file

@ -286,9 +286,7 @@ int make_fd_blocking(int fd) {
int fd_check_is_remote(int fd) { int fd_check_is_remote(int fd) {
#if defined(__linux__) #if defined(__linux__)
struct statfs buf { struct statfs buf {};
0
};
if (fstatfs(fd, &buf) < 0) { if (fstatfs(fd, &buf) < 0) {
return -1; return -1;
} }