mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 08:21:56 +08:00
Fix an uninitialized variable warning on gcc 6
This commit is contained in:
parent
976ed6d2e8
commit
fc5067ca33
@ -341,7 +341,7 @@ int builtin_functions(parser_t &parser, io_streams_t &streams, wchar_t **argv) {
|
||||
}
|
||||
|
||||
if (opts.handlers) {
|
||||
maybe_t<event_type_t> type_filter;
|
||||
maybe_t<event_type_t> type_filter{};
|
||||
if (opts.handlers_type) {
|
||||
type_filter = event_type_for_name(opts.handlers_type);
|
||||
if (!type_filter) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user