unsigned int nb_event_fields = 0;
struct lttng_payload reply;
+ lttng_payload_init(&reply);
+
if (handle == NULL) {
ret = -LTTNG_ERR_INVALID;
goto end;
}
- lttng_payload_init(&reply);
-
memset(&lsm, 0, sizeof(lsm));
lsm.cmd_type = LTTNG_LIST_TRACEPOINT_FIELDS;
COPY_DOMAIN_PACKED(lsm.domain, handle->domain);
ret = nb_event_fields;
end:
+ lttng_payload_reset(&reply);
return ret;
}