From fbd4ff027ad1fbb3f8f4be39951e240c9b430a91 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Sat, 4 May 2019 16:47:27 -0700 Subject: [PATCH] Initialize a field that was previously uninitialized Caught by UBSan --- src/function.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/function.h b/src/function.h index fc6529e72..89179d46f 100644 --- a/src/function.h +++ b/src/function.h @@ -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