Skip to content

Commit 2e2b3ad

Browse files
authored
Merge pull request axboe#1425 from giubacc/misplaced-goto
Fixed misplaced goto in http.c
2 parents d6225c1 + 4a4c21b commit 2e2b3ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

engines/http.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,8 +526,8 @@ static enum fio_q_status fio_http_queue(struct thread_data *td,
526526
if (status == 100 || (status >= 200 && status <= 204))
527527
goto out;
528528
log_err("DDIR_WRITE failed with HTTP status code %ld\n", status);
529-
goto err;
530529
}
530+
goto err;
531531
} else if (io_u->ddir == DDIR_READ) {
532532
curl_easy_setopt(http->curl, CURLOPT_READDATA, NULL);
533533
curl_easy_setopt(http->curl, CURLOPT_WRITEDATA, &_curl_stream);

0 commit comments

Comments
 (0)