mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-10 15:14:44 +00:00
Minor tweak to silence warning
Silences a clang++ warning: "using the result of an assignment as a condition without parentheses"
This commit is contained in:
parent
dacc0b595c
commit
1be8277f41
1 changed files with 1 additions and 1 deletions
|
@ -533,7 +533,7 @@ int builtin_read(parser_t &parser, io_streams_t &streams, wchar_t **argv) {
|
|||
}
|
||||
|
||||
// If we still have tokens, set the last variable to them.
|
||||
if (t = tok.next()) {
|
||||
if ((t = tok.next())) {
|
||||
wcstring rest = wcstring(buff, t->offset);
|
||||
vars.set_one(*var_ptr++, opts.place, rest);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue