Skip to content

Commit 4e04c67

Browse files
authored
Merge pull request #149 from zhaozhiwen/fix/128-csv-uninit-members
Default-initialize CSV factory's cached event/run/thread ids
2 parents 60a1fdf + 3ab7337 commit 4e04c67

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

gemc/gstreamer/factories/CSV/gstreamerCSVFactory.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -262,11 +262,11 @@ class GstreamerCsvFactory : public GStreamer
262262
std::string timestamp;
263263

264264
/// \brief Cached event number copied at the start of the most recent event publish cycle.
265-
int event_number;
265+
int event_number = -1;
266266

267267
/// \brief Cached run number copied at the start of the most recent run publish cycle.
268-
int runId;
268+
int runId = -1;
269269

270270
/// \brief Cached thread id copied from the most recent event header.
271-
int thread_id;
271+
int thread_id = -1;
272272
};

0 commit comments

Comments
 (0)