mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-10 23:24:39 +00:00
Initialize variable
gcc 12.1 complains this might be used uninitialized.
This commit is contained in:
parent
11cfa85a2a
commit
32aef855b7
1 changed files with 1 additions and 1 deletions
|
@ -544,7 +544,7 @@ static void color_string_internal(const wcstring &buffstr, highlight_spec_t base
|
|||
}
|
||||
|
||||
enum { e_unquoted, e_single_quoted, e_double_quoted } mode = e_unquoted;
|
||||
maybe_t<size_t> unclosed_quote_offset;
|
||||
maybe_t<size_t> unclosed_quote_offset = none();
|
||||
int bracket_count = 0;
|
||||
for (size_t in_pos = 0; in_pos < buff_len; in_pos++) {
|
||||
const wchar_t c = buffstr.at(in_pos);
|
||||
|
|
Loading…
Reference in a new issue