summaryrefslogtreecommitdiff
path: root/regress/lib
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2023-07-21 20:22:48 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2023-07-21 20:22:48 +0000
commit43b34965dbe4020a645c5081de6459ef49707e76 (patch)
treeb4ab7b0cbb794cf01658507ec3c2cadc9c0ce702 /regress/lib
parentc02bacc11e5fceeabdee20f53917a4f286cd7650 (diff)
bio_asn1 tests: drop unneeded variable
Diffstat (limited to 'regress/lib')
-rw-r--r--regress/lib/libcrypto/bio/bio_asn1.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/regress/lib/libcrypto/bio/bio_asn1.c b/regress/lib/libcrypto/bio/bio_asn1.c
index 92a18d03ae3..3eba1849bc0 100644
--- a/regress/lib/libcrypto/bio/bio_asn1.c
+++ b/regress/lib/libcrypto/bio/bio_asn1.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bio_asn1.c,v 1.4 2023/05/02 09:30:37 tb Exp $ */
+/* $OpenBSD: bio_asn1.c,v 1.5 2023/07/21 20:22:47 tb Exp $ */
/*
* Copyright (c) 2023 Theo Buehler <tb@openbsd.org>
@@ -105,13 +105,12 @@ read_leak_cb(BIO *bio, int cmd, const char *argp, int argi, long argl, long ret)
static int
test_prefix_leak(void)
{
- const char *data = "some data\n";
BIO *bio_in = NULL, *bio_out = NULL;
PKCS7 *pkcs7 = NULL;
char set_me = 0;
int failed = 1;
- if ((bio_in = BIO_new_mem_buf(data, -1)) == NULL)
+ if ((bio_in = BIO_new_mem_buf("some data\n", -1)) == NULL)
goto err;
BIO_set_callback(bio_in, read_leak_cb);