X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fwrite_http.c;h=c817749f0b0bd93cec839176972d63ceb8a7e490;hb=3dc0454f7bee3e852171d1f6944891693364ee01;hp=14ce0ec722542a47de52aa360e28a726d15d1322;hpb=374882386479278f8d693f09ea970861ac6f6375;p=collectd.git 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.");