Skip to content

Commit c1fdfe2

Browse files
committed
uninitialized bool
1 parent 100e65c commit c1fdfe2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

modules/mqtt_streaming_module/src/group_signal_shared_ts_handler.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ TimestampTickStruct GroupSignalSharedTsHandler::domainToTs(const MultiReaderStat
204204

205205
bool GroupSignalSharedTsHandler::processEvents(const MultiReaderStatusPtr& status)
206206
{
207-
bool result;
207+
bool result = false;
208208
if (status.getReadStatus() == ReadStatus::Event)
209209
{
210210
bool descChanged = std::any_of(status.getEventPackets().begin(),
@@ -217,7 +217,7 @@ bool GroupSignalSharedTsHandler::processEvents(const MultiReaderStatusPtr& statu
217217
result = !firstDescriptorChange && descChanged;
218218
firstDescriptorChange &= !descChanged;
219219
}
220-
result &= !status.getValid();
220+
result |= !status.getValid();
221221
return result;
222222
}
223223

0 commit comments

Comments
 (0)