summaryrefslogtreecommitdiff
path: root/lib/libcrypto/comp/c_zlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libcrypto/comp/c_zlib.c')
-rw-r--r--lib/libcrypto/comp/c_zlib.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libcrypto/comp/c_zlib.c b/lib/libcrypto/comp/c_zlib.c
index 26c6507cd5d..34ae5d07f52 100644
--- a/lib/libcrypto/comp/c_zlib.c
+++ b/lib/libcrypto/comp/c_zlib.c
@@ -113,8 +113,7 @@ static int
zlib_stateful_init(COMP_CTX *ctx)
{
int err;
- struct zlib_state *state =
- (struct zlib_state *)malloc(sizeof(struct zlib_state));
+ struct zlib_state *state = malloc(sizeof(struct zlib_state));
if (state == NULL)
goto err;