summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2020-11-17 09:55:49 +0100
committerRichard Levitte <levitte@openssl.org>2020-11-18 17:12:20 +0100
commit3800cc6f4d285699210da496a42434bd2b42e065 (patch)
treec32b58c568abb0f6e71c70bf8358ebdac08f3eee /doc
parentf1d6670840b08104646713f464a6ef42e2cf1c2a (diff)
DOC: Fix example in OSSL_PARAM_int.pod
This fixes an incorrect NULL check. Fixes #11162 Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/13426)
Diffstat (limited to 'doc')
-rw-r--r--doc/man3/OSSL_PARAM_int.pod6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/man3/OSSL_PARAM_int.pod b/doc/man3/OSSL_PARAM_int.pod
index 691bc3b340..3d124d7442 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