diff options
author | Christos Zoulas <christos@zoulas.com> | 2018-09-30 16:56:14 -0400 |
---|---|---|
committer | Viktor Dukhovni <openssl-users@dukhovni.org> | 2018-12-09 22:02:49 -0500 |
commit | 82f518acee36754cb6f64d39ba926b32daae2534 (patch) | |
tree | 14e2b54003d37e7358d9a64c9c9e63f20a900551 /test | |
parent | 706a8af01556334dd250b6d252536e78fa8f9063 (diff) |
don't pass const string where a modifyable string is expected
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
Diffstat (limited to 'test')
-rw-r--r-- | test/testutil/tap_bio.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/testutil/tap_bio.c b/test/testutil/tap_bio.c index 1b3881c7ee..f3ee2787d2 100644 --- a/test/testutil/tap_bio.c +++ b/test/testutil/tap_bio.c @@ -93,13 +93,14 @@ static int write_string(BIO *b, const char *buf, size_t n) */ static int tap_write_ex(BIO *b, const char *buf, size_t size, size_t *in_size) { + static char empty[] = ""; BIO *next = BIO_next(b); size_t i; int j; for (i = 0; i < size; i++) { if (BIO_get_data(b) == NULL) { - BIO_set_data(b, ""); + BIO_set_data(b, empty); for (j = 0; j < subtest_level(); j++) if (!write_string(next, " ", 1)) goto err; |