mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-15 23:22:53 +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.
|
||||
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";
|
||||
autoclose_fd_t result;
|
||||
std::string narrow_str;
|
||||
|
Loading…
x
Reference in New Issue
Block a user