mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-15 23:22:53 +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) {
|
||||
#if defined(__linux__)
|
||||
struct statfs buf {
|
||||
0
|
||||
};
|
||||
struct statfs buf {};
|
||||
if (fstatfs(fd, &buf) < 0) {
|
||||
return -1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user