X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fmysql.c;h=029796e6c5045852f56a9fd60c39f36a517ce5d0;hb=1ebf2f31bd2e080e6f42de640f0a3899a61501c0;hp=3850745650a50d8425a305e1368925794038700f;hpb=6894d846ac42cbe88073db074d75279f5a6e31b8;p=collectd.git diff --git a/src/mysql.c b/src/mysql.c index 38507456..029796e6 100644 --- a/src/mysql.c +++ b/src/mysql.c @@ -113,7 +113,7 @@ static int mysql_config_database (oconfig_item_t *ci) /* {{{ */ return (-1); } - db = (mysql_database_t *) malloc (sizeof (*db)); + db = malloc (sizeof (*db)); if (db == NULL) { ERROR ("mysql plugin: malloc failed.");