Fix an uninitialized variable warning on gcc 6

This commit is contained in:
ridiculousfish 2020-08-04 11:01:31 -07:00
parent 976ed6d2e8
commit fc5067ca33

View File

@ -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) {