From: Richard Levitte Date: Tue, 17 Nov 2020 08:55:49 +0000 (+0100) Subject: DOC: Fix example in OSSL_PARAM_int.pod X-Git-Tag: openssl-3.0.0-alpha9~68 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3800cc6f4d285699210da496a42434bd2b42e065;p=thirdparty%2Fopenssl.git DOC: Fix example in OSSL_PARAM_int.pod This fixes an incorrect NULL check. Fixes #11162 Reviewed-by: Matt Caswell Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/13426) --- diff --git a/doc/man3/OSSL_PARAM_int.pod b/doc/man3/OSSL_PARAM_int.pod index 691bc3b340e..3d124d74429 100644 --- a/doc/man3/OSSL_PARAM_int.pod +++ b/doc/man3/OSSL_PARAM_int.pod @@ -362,11 +362,11 @@ could fill in the parameters like this: OSSL_PARAM *p; - if ((p = OSSL_PARAM_locate(params, "foo")) == NULL) + if ((p = OSSL_PARAM_locate(params, "foo")) != NULL) OSSL_PARAM_set_utf8_ptr(p, "foo value"); - if ((p = OSSL_PARAM_locate(params, "bar")) == NULL) + if ((p = OSSL_PARAM_locate(params, "bar")) != NULL) OSSL_PARAM_set_utf8_ptr(p, "bar value"); - if ((p = OSSL_PARAM_locate(params, "cookie")) == NULL) + if ((p = OSSL_PARAM_locate(params, "cookie")) != NULL) OSSL_PARAM_set_utf8_ptr(p, "cookie value"); =head1 SEE ALSO