reader: Pre-increment

If we don't do it now, static analysis things are just gonna bug us
until someone does it.
This commit is contained in:
Fabian Homborg 2020-11-15 11:25:45 +01:00
parent 575d574691
commit 9f924f37fb

View File

@ -2584,7 +2584,7 @@ static int read_i(parser_t &parser) {
data->import_history_if_necessary(); data->import_history_if_necessary();
while (!check_exit_loop_maybe_warning(data.get())) { while (!check_exit_loop_maybe_warning(data.get())) {
run_count++; ++run_count;
maybe_t<wcstring> tmp = data->readline(0); maybe_t<wcstring> tmp = data->readline(0);
if (tmp && !tmp->empty()) { if (tmp && !tmp->empty()) {
@ -2597,7 +2597,7 @@ static int read_i(parser_t &parser) {
auto eval_res = reader_run_command(parser, command); auto eval_res = reader_run_command(parser, command);
signal_clear_cancel(); signal_clear_cancel();
if (!eval_res.no_status) { if (!eval_res.no_status) {
status_count++; ++status_count;
} }
// If the command requested an exit, then process it now and clear it. // If the command requested an exit, then process it now and clear it.