mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-28 13:53:10 +00:00
Use C++11 value-initialization instead of { 0 }
Removes a warning in GCC.
This commit is contained in:
parent
1259b32ecc
commit
6617c4d79e
1 changed files with 1 additions and 3 deletions
|
@ -286,9 +286,7 @@ int make_fd_blocking(int fd) {
|
|||
|
||||
int fd_check_is_remote(int fd) {
|
||||
#if defined(__linux__)
|
||||
struct statfs buf {
|
||||
0
|
||||
};
|
||||
struct statfs buf {};
|
||||
if (fstatfs(fd, &buf) < 0) {
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue