Code

openldap plugin: malloc + memset -> calloc
[collectd.git] / src / target_scale.c
index 6169fa05d585ce4c7a97abc6c882b80dbbeb78db..b667ed13ed618ae243b0084ca6778452c42253a8 100644 (file)
@@ -387,7 +387,7 @@ static int ts_create (const oconfig_item_t *ci, void **user_data) /* {{{ */
        int status;
        int i;
 
-       data = (ts_data_t *) malloc (sizeof (*data));
+       data = malloc (sizeof (*data));
        if (data == NULL)
        {
                ERROR ("ts_create: malloc failed.");