Fix relayd: initialize beacon to -1ULL
[lttng-tools.git] / src / bin / lttng-relayd / stream.c
index e9c7ad172bc0d2f0e44ff3925ae929bd0b8e1398..f989bfd1361be36bd20d4edfa018f36b11de062b 100644 (file)
@@ -86,7 +86,6 @@ struct relay_stream *stream_create(struct ctf_trace *trace,
        stream = zmalloc(sizeof(struct relay_stream));
        if (stream == NULL) {
                PERROR("relay stream zmalloc");
-               ret = -1;
                goto error_no_alloc;
        }
 
@@ -98,6 +97,7 @@ struct relay_stream *stream_create(struct ctf_trace *trace,
        stream->tracefile_count = tracefile_count;
        stream->path_name = path_name;
        stream->channel_name = channel_name;
+       stream->beacon_ts_end = -1ULL;
        lttng_ht_node_init_u64(&stream->node, stream->stream_handle);
        pthread_mutex_init(&stream->lock, NULL);
        pthread_mutex_init(&stream->reflock, NULL);
This page took 0.027138 seconds and 4 git commands to generate.