From a11ccccef0da1effb0f6c07a3a3db0f6d46fac0f Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Fri, 1 Apr 2016 18:37:19 +0200 Subject: [PATCH] write_http plugin: remove unnecessary cast --- src/write_http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/write_http.c b/src/write_http.c index 14ce0ec7..c817749f 100644 --- a/src/write_http.c +++ b/src/write_http.c @@ -183,7 +183,7 @@ static int wh_callback_init (wh_callback_t *cb) /* {{{ */ if (cb->pass != NULL) credentials_size += strlen (cb->pass); - cb->credentials = (char *) malloc (credentials_size); + cb->credentials = malloc (credentials_size); if (cb->credentials == NULL) { ERROR ("curl plugin: malloc failed."); -- 2.30.2