From: Jérémie Galarneau Date: Sun, 30 Aug 2015 21:38:25 +0000 (-0400) Subject: Use type directly in sizeof instead of a dereferenced pointer X-Git-Tag: v2.8.0-rc1~449 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=3b5f70d447d59a7d52ebec53e8f7bc962226fea9;p=lttng-tools.git Use type directly in sizeof instead of a dereferenced pointer Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/agent.c b/src/bin/lttng-sessiond/agent.c index ca2d4c872..0f61a75d6 100644 --- a/src/bin/lttng-sessiond/agent.c +++ b/src/bin/lttng-sessiond/agent.c @@ -802,7 +802,7 @@ struct agent *agent_create(enum lttng_domain_type domain) int ret; struct agent *agt; - agt = zmalloc(sizeof(*agt)); + agt = zmalloc(sizeof(struct agent)); if (!agt) { goto error; }