Skip to content

Commit

Permalink
Merge pull request #18 from TransbankDevelopers/chore/add-missing-test
Browse files Browse the repository at this point in the history
Add missing test
  • Loading branch information
Alfredo Fiebig authored May 9, 2019
2 parents 7ad4e71 + c3b6c13 commit d2fc40d
Show file tree
Hide file tree
Showing 2 changed files with 264 additions and 92 deletions.
2 changes: 1 addition & 1 deletion src/transbank.c
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ BaseResponse close()
if (wait > 0)
{
int readedbytes = read_bytes(port, buf, CLOSE);
if (read_bytes > 0)
if (readedbytes > 0)
{
retval = reply_ack(port, buf, CLOSE.responseSize);
if (retval == TBK_OK)
Expand Down
Loading

0 comments on commit d2fc40d

Please sign in to comment.