X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fdaemon%2Futils_tail.c;h=c4b73c35dffc4c85dc218a2e3baecb1c25178d7f;hb=04d03d38dc1e53b30541bbec1a8bdd769c0c6e04;hp=fe5dca89b891ef3b8c874b2ee7cb8d414e172409;hpb=9e5cdde4656070893ecf59c6234af0593bdda1a0;p=collectd.git diff --git a/src/daemon/utils_tail.c b/src/daemon/utils_tail.c index fe5dca89..c4b73c35 100644 --- a/src/daemon/utils_tail.c +++ b/src/daemon/utils_tail.c @@ -119,7 +119,7 @@ cu_tail_t *cu_tail_create (const char *file) { cu_tail_t *obj; - obj = (cu_tail_t *) malloc (sizeof (cu_tail_t)); + obj = malloc (sizeof (*obj)); if (obj == NULL) return (NULL); memset (obj, '\0', sizeof (cu_tail_t));