X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fpostgresql.c;h=d532906cc6063c499ebc7f32fccd6d97b78c53a9;hb=1ebf2f31bd2e080e6f42de640f0a3899a61501c0;hp=79226830cb810c68579852165c889a3b176731e2;hpb=6894d846ac42cbe88073db074d75279f5a6e31b8;p=collectd.git diff --git a/src/postgresql.c b/src/postgresql.c index 79226830..d532906c 100644 --- a/src/postgresql.c +++ b/src/postgresql.c @@ -218,7 +218,7 @@ static c_psql_database_t *c_psql_database_new (const char *name) c_psql_database_t **tmp; c_psql_database_t *db; - db = (c_psql_database_t *)malloc (sizeof(*db)); + db = malloc (sizeof(*db)); if (NULL == db) { log_err ("Out of memory."); return NULL;