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:
Michael Jarvis 2019-12-03 15:00:27 -06:00 committed by ridiculousfish
parent dacc0b595c
commit 1be8277f41

View file

@ -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);
}