ustctl: Initialize counter_conf struct to zero
[lttng-ust.git] / liblttng-ust-ctl / ustctl.c
index 650e7290db331d62b75d8fe5a7b567502e7f8563..8460dbf4f654ab06fc2954405b48ab6f6fb024bf 100644 (file)
@@ -583,6 +583,7 @@ int ustctl_create_event_notifier(int sock, struct lttng_ust_event_notifier *even
        lum.u.event_notifier.event.loglevel_type = event_notifier->event.loglevel_type;
        lum.u.event_notifier.event.loglevel = event_notifier->event.loglevel;
        lum.u.event_notifier.event.token = event_notifier->event.token;
+       lum.u.event_notifier.error_counter_index = event_notifier->error_counter_index;
        ret = ustcomm_send_app_cmd(sock, &lum, &lur);
        if (ret) {
                free(event_notifier_data);
@@ -2562,7 +2563,7 @@ int ustctl_create_counter_data(struct ustctl_daemon_counter *counter,
                struct lttng_ust_object_data **_counter_data)
 {
        struct lttng_ust_object_data *counter_data;
-       struct lttng_ust_counter_conf counter_conf;
+       struct lttng_ust_counter_conf counter_conf = {0};
        size_t i;
        int ret;
 
This page took 0.023458 seconds and 4 git commands to generate.