mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-31 03:51:14 -03:00
Initialize a field that was previously uninitialized
Caught by UBSan
This commit is contained in:
@@ -27,7 +27,7 @@ struct function_properties_t {
|
||||
wcstring_list_t named_arguments;
|
||||
|
||||
/// Set to true if invoking this function shadows the variables of the underlying function.
|
||||
bool shadow_scope;
|
||||
bool shadow_scope{true};
|
||||
};
|
||||
|
||||
/// Structure describing a function. This is used by the parser to store data on a function while
|
||||
|
||||
Reference in New Issue
Block a user