From a13dfa624381df2e77f5ca31d1187e39a82f9196 Mon Sep 17 00:00:00 2001 From: tb <> Date: Fri, 29 Sep 2023 06:53:05 +0000 Subject: Appease coverity This is a static pointer, so it ain't ever NULL, but shrug --- src/regress/lib/libcrypto/evp/evp_test.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/regress/lib/libcrypto/evp/evp_test.c b/src/regress/lib/libcrypto/evp/evp_test.c index 0b1f54f6af..eff071fa51 100644 --- a/src/regress/lib/libcrypto/evp/evp_test.c +++ b/src/regress/lib/libcrypto/evp/evp_test.c @@ -1,4 +1,4 @@ -/* $OpenBSD: evp_test.c,v 1.6 2023/09/28 14:54:39 tb Exp $ */ +/* $OpenBSD: evp_test.c,v 1.7 2023/09/29 06:53:05 tb Exp $ */ /* * Copyright (c) 2022 Joel Sing * @@ -345,11 +345,13 @@ static int evp_pkey_iv_len_testcase(const struct evp_iv_len_test *test) { const EVP_CIPHER *cipher = test->cipher(); - const char *name = OBJ_nid2ln(EVP_CIPHER_nid(cipher)); + const char *name; EVP_CIPHER_CTX *ctx; int ret; int failure = 1; + assert(cipher != NULL); + name = OBJ_nid2ln(EVP_CIPHER_nid(cipher)); assert(name != NULL); if ((ctx = EVP_CIPHER_CTX_new()) == NULL) { -- cgit v1.2.3-55-g6feb