X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Ftracker.c;h=7c97d561c982139283afde068394da7703a161c6;hp=2c91d5d6ebd45c6991a421a5aff2897c15a55fb6;hb=546c03fe47b33fa4490f94a3e441fb51e78bd3b0;hpb=9df6c82a8ea4064f9868028b9fc3412f45adbb0a diff --git a/src/common/tracker.c b/src/common/tracker.c index 2c91d5d6e..7c97d561c 100644 --- a/src/common/tracker.c +++ b/src/common/tracker.c @@ -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;