From 728a120df27d5f27a477f1faae0059a5fcab150c Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Mon, 21 Aug 2017 18:26:43 +0200 Subject: Avoid uninitialised variable in TimestampDecoder --- src/TimestampDecoder.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/TimestampDecoder.h b/src/TimestampDecoder.h index 171dba7..c835430 100644 --- a/src/TimestampDecoder.h +++ b/src/TimestampDecoder.h @@ -122,6 +122,7 @@ class TimestampDecoder : public RemoteControllable latestFCT = 0; enableDecode = false; full_timestamp_received = false; + bzero(&temp_time, sizeof(temp_time)); gmtime_r(0, &temp_time); offset_changed = false; -- cgit v1.2.3