diff options
author | deraadt <> | 2014-06-07 14:41:57 +0000 |
---|---|---|
committer | deraadt <> | 2014-06-07 14:41:57 +0000 |
commit | 6e812251158ecbc0733dba21489ebce1248ebb33 (patch) | |
tree | c0956c22011ba4358ae4ab650adf0e744f93f40c /src/lib/libcrypto/ec/ec_print.c | |
parent | 369f4c90b9a7f7864572479745455d29b0777219 (diff) | |
download | openbsd-6e812251158ecbc0733dba21489ebce1248ebb33.tar.gz openbsd-6e812251158ecbc0733dba21489ebce1248ebb33.tar.bz2 openbsd-6e812251158ecbc0733dba21489ebce1248ebb33.zip |
malloc() result does not need a cast.
ok miod
Diffstat (limited to 'src/lib/libcrypto/ec/ec_print.c')
-rw-r--r-- | src/lib/libcrypto/ec/ec_print.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/libcrypto/ec/ec_print.c b/src/lib/libcrypto/ec/ec_print.c index 84a78903b3..aac1f4229a 100644 --- a/src/lib/libcrypto/ec/ec_print.c +++ b/src/lib/libcrypto/ec/ec_print.c | |||
@@ -141,7 +141,7 @@ EC_POINT_point2hex(const EC_GROUP * group, const EC_POINT * point, | |||
141 | free(buf); | 141 | free(buf); |
142 | return NULL; | 142 | return NULL; |
143 | } | 143 | } |
144 | ret = (char *) malloc(buf_len * 2 + 2); | 144 | ret = malloc(buf_len * 2 + 2); |
145 | if (ret == NULL) { | 145 | if (ret == NULL) { |
146 | free(buf); | 146 | free(buf); |
147 | return NULL; | 147 | return NULL; |