summaryrefslogtreecommitdiff
path: root/util/check-format-test-negatives.c
diff options
context:
space:
mode:
authorDr. David von Oheimb <David.von.Oheimb@siemens.com>2022-01-06 22:05:22 +0100
committerPauli <ppzgs1@gmail.com>2022-01-09 13:19:52 +1100
commit15ae69fa7bc0f367edded19bc48e6d9a5ce8d547 (patch)
tree28c195e6ca878abe4049b14ad8669ccedc7f59a1 /util/check-format-test-negatives.c
parentd8662f2f8716645164a9d4d8795a9c353fe315fb (diff)
downloadopenssl-new-15ae69fa7bc0f367edded19bc48e6d9a5ce8d547.tar.gz
check-format.pl: Fix report on constant on LHS of comparison/assignment
Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/17434)
Diffstat (limited to 'util/check-format-test-negatives.c')
-rw-r--r--util/check-format-test-negatives.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/util/check-format-test-negatives.c b/util/check-format-test-negatives.c
index f4c0908e4c..8f6ed23ee7 100644
--- a/util/check-format-test-negatives.c
+++ b/util/check-format-test-negatives.c
@@ -188,6 +188,7 @@ int f(void) /*
/* should not trigger: constant on LHS of comparison or assignment operator */
X509 *x509 = NULL;
int y = a + 1 < b;
+int ret, was_NULL = *certs == NULL;
const OPTIONS passwd_options[] = {
{"aixmd5", OPT_AIXMD5, '-', "AIX MD5-based password algorithm"},