mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-30 14:53:11 +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) {
|
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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue