From: Timo Sirainen Date: Mon, 27 Jun 2016 13:37:18 +0000 (+0300) Subject: lib-dcrypt: Make static analyzer happier X-Git-Tag: 2.2.25.rc1~53 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3412a5bda73ce28a1fb2f2821741e8566a6b64cd;p=thirdparty%2Fdovecot%2Fcore.git lib-dcrypt: Make static analyzer happier --- diff --git a/src/lib-dcrypt/test-crypto.c b/src/lib-dcrypt/test-crypto.c index 64434a5d41..a6d96b10b7 100644 --- a/src/lib-dcrypt/test-crypto.c +++ b/src/lib-dcrypt/test-crypto.c @@ -349,8 +349,7 @@ void test_load_v1_public_key(void) 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;