Use type directly in sizeof instead of a dereferenced pointer
[lttng-tools.git] / src / bin / lttng-sessiond / agent.c
index ca2d4c872931632f4e5d46cb9c6b17b6b3d0d8ed..0f61a75d612c0d927b7721edc6ff3b0f0867e6d5 100644 (file)
@@ -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;
        }
This page took 0.025535 seconds and 5 git commands to generate.