X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fdns.c;h=f48be00968d856236a95282f5d7f56a192213290;hb=1ebf2f31bd2e080e6f42de640f0a3899a61501c0;hp=3421c475d7e6fc49c2419332dbcd8e5d3dd09f06;hpb=6894d846ac42cbe88073db074d75279f5a6e31b8;p=collectd.git diff --git a/src/dns.c b/src/dns.c index 3421c475..f48be009 100644 --- a/src/dns.c +++ b/src/dns.c @@ -94,7 +94,7 @@ static counter_list_t *counter_list_create (counter_list_t **list, { counter_list_t *entry; - entry = (counter_list_t *) malloc (sizeof (counter_list_t)); + entry = malloc (sizeof (*entry)); if (entry == NULL) return (NULL);