Mercurial > dovecot > core-2.2
changeset 20655:d53cb89c7ca8
lib-http: Ensure fstream is not NULL in test
Makes static analysers happier
author | Aki Tuomi <aki.tuomi@dovecot.fi> |
---|---|
date | Tue, 16 Aug 2016 13:46:09 +0300 |
parents | afabdcf82622 |
children | 4497b16da1e3 |
files | src/lib-http/test-http-payload.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-http/test-http-payload.c Tue Aug 16 13:44:27 2016 +0300 +++ b/src/lib-http/test-http-payload.c Tue Aug 16 13:46:09 2016 +0300 @@ -764,6 +764,8 @@ } 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)",