fixed a minor bug in Sttp.cpp

This commit is contained in:
hyung-hwan 2020-08-17 17:12:49 +00:00
parent 0adea0187c
commit e53dbef46a

View File

@ -273,12 +273,12 @@ int Sttp::handle_param_list_char (qse_char_t c)
{ {
if (this->rd_state_stack->u.ipl.got_value || this->command.getArgCount() == 0) if (this->rd_state_stack->u.ipl.got_value || this->command.getArgCount() == 0)
{ {
this->command.addArg (this->token); if (this->rd_state_stack->u.ipl.got_value) this->command.addArg (this->token);
this->clear_token(); this->clear_token();
this->rd_state_stack->u.ipl.got_value = false; this->rd_state_stack->u.ipl.got_value = false;
this->pop_read_state (); // back to the START state. this->pop_read_state (); // back to the START state.
int x = this->handle_command (this->command); int x = this->handle_command(this->command);
this->command.clear (); this->command.clear ();
if (x <= -1) return -1; if (x <= -1) return -1;
} }