projects
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
706a8af
)
don't pass const string where a modifyable string is expected
author
Christos Zoulas
<christos@zoulas.com>
Sun, 30 Sep 2018 20:56:14 +0000
(16:56 -0400)
committer
Viktor Dukhovni
<openssl-users@dukhovni.org>
Mon, 10 Dec 2018 03:02:49 +0000
(22:02 -0500)
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
test/testutil/tap_bio.c
patch
|
blob
|
history
diff --git
a/test/testutil/tap_bio.c
b/test/testutil/tap_bio.c
index 1b3881c7ee65ff692c88bb5a7b6a3419de8f5f05..f3ee2787d21ee65e95d9d73f02195806e88ede79 100644
(file)
--- 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;