From c65f3435e9de832be7e08acd0b8d40220505f2d7 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 16 Aug 2018 09:30:21 -0600 Subject: [PATCH] engines/http: fix use of uninitialized variable Fixes: c2f6a13ddc64 ("engines/http: Add support for WebDAV and S3") Signed-off-by: Jens Axboe --- engines/http.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engines/http.c b/engines/http.c index 979573a8..9d08bb4b 100644 --- a/engines/http.c +++ b/engines/http.c @@ -498,7 +498,7 @@ static int fio_http_setup(struct thread_data *td) { struct http_data *http = NULL; struct http_options *o = td->eo; - int r; + /* allocate engine specific structure to deal with libhttp. */ http = calloc(1, sizeof(*http)); if (!http) { @@ -531,7 +531,7 @@ static int fio_http_setup(struct thread_data *td) return 0; cleanup: fio_http_cleanup(td); - return r; + return 1; } static int fio_http_open(struct thread_data *td, struct fio_file *f) -- 2.25.1