projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bda1f0c
)
Fix const issues
author
Christos Zoulas
<christos@zoulas.com>
Sun, 30 Sep 2018 20:59:46 +0000
(16:59 -0400)
committer
Viktor Dukhovni
<openssl-users@dukhovni.org>
Mon, 10 Dec 2018 03:02:50 +0000
(22:02 -0500)
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
test/testutil/format_output.c
patch
|
blob
|
history
diff --git
a/test/testutil/format_output.c
b/test/testutil/format_output.c
index b2207503f970951d2c6b54fd93c315e5352f392f..ead03841d5ba142e422f187377d7bc438fc665de 100644
(file)
--- a/
test/testutil/format_output.c
+++ b/
test/testutil/format_output.c
@@
-206,6
+206,7
@@
static int convert_bn_memory(const unsigned char *in, size_t bytes,
{
int n = bytes * 2, i;
char *p = out, *q = NULL;
+ const char *r;
if (bn != NULL && !BN_is_zero(bn)) {
hex_convert_memory(in, bytes, out, BN_OUTPUT_SIZE);
@@
-248,10
+249,10
@@
static int convert_bn_memory(const unsigned char *in, size_t bytes,
}
*p = '\0';
if (bn == NULL)
-
q
= "NULL";
+
r
= "NULL";
else
-
q
= BN_is_negative(bn) ? "-0" : "0";
- strcpy(p - strlen(
q), q
);
+
r
= BN_is_negative(bn) ? "-0" : "0";
+ strcpy(p - strlen(
r), r
);
return 0;
}