Initialize a value (fixes uninitialized access) 85/235185/2
authorMichal Bloch <m.bloch@samsung.com>
Tue, 2 Jun 2020 11:09:28 +0000 (13:09 +0200)
committerMichal Bloch <m.bloch@partner.samsung.com>
Tue, 2 Jun 2020 14:58:21 +0000 (14:58 +0000)
Change-Id: I1984ea4fe7c3ec1748d73ca546c8e550e31c9224
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
src/libdlogutil/logretrieve.c

index 3963a2d..fe68f78 100644 (file)
@@ -181,6 +181,7 @@ int dlogutil_state_init(dlogutil_state_s *state, struct fd_info ***data_fds_ptr,
        state->data_fds = data_fds;
        state->monitor = monitor;
        state->need_epoll = true;
+       state->flush_target = LONG_MAX;
        *data_fds_ptr = NULL;
        sort_vector_init(&state->logs);
        state->filter_object = filter ? log_filter_from_filter(filter) : dlogutil_filter_options_create();