From 3d625026822d0571e164eafb4033945e3defe89a Mon Sep 17 00:00:00 2001 From: tb Date: Fri, 29 Sep 2023 06:53:05 +0000 Subject: [PATCH] Appease coverity This is a static pointer, so it ain't ever NULL, but shrug --- regress/lib/libcrypto/evp/evp_test.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/regress/lib/libcrypto/evp/evp_test.c b/regress/lib/libcrypto/evp/evp_test.c index 0b1f54f6af0..eff071fa516 100644 --- a/regress/lib/libcrypto/evp/evp_test.c +++ b/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) { -- 2.20.1