From 078e9563f35e0312fd210f7dbb062cc6db880cf9 Mon Sep 17 00:00:00 2001 From: tb <> Date: Fri, 21 Jul 2023 20:22:47 +0000 Subject: bio_asn1 tests: drop unneeded variable --- src/regress/lib/libcrypto/bio/bio_asn1.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/regress/lib') diff --git a/src/regress/lib/libcrypto/bio/bio_asn1.c b/src/regress/lib/libcrypto/bio/bio_asn1.c index 92a18d03ae..3eba1849bc 100644 --- a/src/regress/lib/libcrypto/bio/bio_asn1.c +++ b/src/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 @@ -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); -- cgit v1.2.3-55-g6feb