mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-27 14:45:13 +08:00
Fix a warning building on Linux
Initialize saved_errno
This commit is contained in:
parent
168677f8b3
commit
89687e7db7
@ -535,7 +535,7 @@ autoclose_fd_t env_universal_t::open_temporary_file(const wcstring &directory, w
|
|||||||
// This should almost always succeed on the first try.
|
// This should almost always succeed on the first try.
|
||||||
assert(!string_suffixes_string(L"/", directory)); //!OCLINT(multiple unary operator)
|
assert(!string_suffixes_string(L"/", directory)); //!OCLINT(multiple unary operator)
|
||||||
|
|
||||||
int saved_errno;
|
int saved_errno = 0;
|
||||||
const wcstring tmp_name_template = directory + L"/fishd.tmp.XXXXXX";
|
const wcstring tmp_name_template = directory + L"/fishd.tmp.XXXXXX";
|
||||||
autoclose_fd_t result;
|
autoclose_fd_t result;
|
||||||
std::string narrow_str;
|
std::string narrow_str;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user