Code

write_http plugin: remove unnecessary cast
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Fri, 1 Apr 2016 16:37:19 +0000 (18:37 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Fri, 1 Apr 2016 16:37:19 +0000 (18:37 +0200)
src/write_http.c

index 14ce0ec722542a47de52aa360e28a726d15d1322..c817749f0b0bd93cec839176972d63ceb8a7e490 100644 (file)
@@ -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.");