Fixed misplaced goto in http.c
authorGiuseppe Baccini <giuseppe.baccini@suse.com>
Tue, 19 Jul 2022 07:39:46 +0000 (09:39 +0200)
committerGiuseppe Baccini <giuseppe.baccini@suse.com>
Tue, 19 Jul 2022 07:39:46 +0000 (09:39 +0200)
commit4a4c21bfbad3cf84133fa57bd58995f887dd81c4
tree793349521d43f8928fbd730efc3598275372cedd
parentd6225c1550827077c0c0f9e1b8816b4f35cd5304
Fixed misplaced goto in http.c

- In http.c:fio_http_queue function, when the user specifies rw=write
  and if curl_easy_perform fails then the control reaches line 565 and
  incorrectly prints: "WARNING: Only DDIR_READ/DDIR_WRITE/DDIR_TRIM are
supported!".
  Fix to this consists in moving statement: "goto err" at the end of the
  block as already has been done for trim/read blocks.

Signed-off-by: Giuseppe Baccini <giuseppe.baccini@suse.com>
engines/http.c