From 1fac27050176f7ed00da5649266024265678f70c Mon Sep 17 00:00:00 2001 From: Tomas Mraz Date: Mon, 19 Apr 2021 16:02:16 +0200 Subject: Fix potential NULL dereference in OSSL_PARAM_get_utf8_string() Fixes Coverity ID 1476283 Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/14928) --- test/evp_extra_test2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/evp_extra_test2.c b/test/evp_extra_test2.c index 358ac6053a..6d5303ab9d 100644 --- a/test/evp_extra_test2.c +++ b/test/evp_extra_test2.c @@ -566,7 +566,7 @@ static int do_check_utf8_str(OSSL_PARAM params[], const char *key, const char *expected) { OSSL_PARAM *p; - char *bufp = 0; + char *bufp = NULL; int ret; ret = TEST_ptr(p = OSSL_PARAM_locate(params, key)) -- cgit v1.2.3