Fix: string might be uninitialized
[lttng-tools.git] / src / common / tracker.c
index 2c91d5d6ebd45c6991a421a5aff2897c15a55fb6..7c97d561c982139283afde068394da7703a161c6 100644 (file)
@@ -300,9 +300,9 @@ void lttng_tracker_ids_destroy(struct lttng_tracker_ids *ids)
 int lttng_tracker_ids_serialize(const struct lttng_tracker_ids *ids,
                struct lttng_dynamic_buffer *buffer)
 {
-       int ret;
+       int ret = 0;
        int value;
-       const char *string;
+       const char *string = NULL;
        unsigned int count;
        enum lttng_tracker_id_status status;
        const struct lttng_tracker_id *id;
This page took 0.025277 seconds and 4 git commands to generate.