From: Aki Tuomi Date: Tue, 16 Aug 2016 10:46:09 +0000 (+0300) Subject: lib-http: Ensure fstream is not NULL in test X-Git-Tag: 2.3.0.rc1~3140 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6eeed94a59ef11b7645adb77a121e04c01849e78;p=thirdparty%2Fdovecot%2Fcore.git lib-http: Ensure fstream is not NULL in test Makes static analysers happier --- 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)",