mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-27 14:45:13 +08:00
Use C++11 value-initialization instead of { 0 }
Removes a warning in GCC.
This commit is contained in:
parent
1259b32ecc
commit
6617c4d79e
@ -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…
x
Reference in New Issue
Block a user