From 6eeed94a59ef11b7645adb77a121e04c01849e78 Mon Sep 17 00:00:00 2001 From: Aki Tuomi Date: Tue, 16 Aug 2016 13:46:09 +0300 Subject: [PATCH] lib-http: Ensure fstream is not NULL in test Makes static analysers happier --- src/lib-http/test-http-payload.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib-http/test-http-payload.c b/src/lib-http/test-http-payload.c index c50713ff33..bc01ae70cb 100644 --- a/src/lib-http/test-http-payload.c +++ b/src/lib-http/test-http-payload.c @@ -757,6 +757,8 @@ test_client_download_response(const struct http_response *resp, } fstream = test_file_open(path, &status, &reason); + i_assert(fstream != NULL); + if (status != resp->status) { i_fatal("test client: download: " "got wrong response for %s: %u %s (expected: %u %s)", -- 2.47.3