mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-31 12:21:19 -03:00
Fix a warning building on Linux
Initialize saved_errno
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user