Mercurial > dovecot > core-2.2
changeset 20417:4da83dd8b95c
lib-dcrypt: Make static analyzer happier
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Mon, 27 Jun 2016 16:37:18 +0300 |
parents | fd85f5b85819 |
children | 567fcc09fd80 |
files | src/lib-dcrypt/test-crypto.c |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-dcrypt/test-crypto.c Mon Jun 27 14:43:58 2016 +0300 +++ b/src/lib-dcrypt/test-crypto.c Mon Jun 27 16:37:18 2016 +0300 @@ -349,8 +349,7 @@ test_assert(version == DCRYPT_KEY_VERSION_1); test_assert(kind == DCRYPT_KEY_KIND_PUBLIC); test_assert(encryption_type == DCRYPT_KEY_ENCRYPTION_TYPE_NONE); - test_assert(key_hash != NULL); - test_assert(strcmp(key_hash, "d0cfaca5d335f9edc41c84bb47465184cb0e2ec3931bebfcea4dd433615e77a0") == 0); + test_assert(key_hash != NULL && strcmp(key_hash, "d0cfaca5d335f9edc41c84bb47465184cb0e2ec3931bebfcea4dd433615e77a0") == 0); test_assert(encryption_key_hash == NULL); struct dcrypt_public_key *pub_key = NULL;