aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2017-08-21 18:26:43 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2017-08-21 18:26:56 +0200
commit728a120df27d5f27a477f1faae0059a5fcab150c (patch)
treed5c7309d4abc9477e69967cae2ddda03e2521768
parent1cfebd56f205f95498079a20bca1a0667be07296 (diff)
downloaddabmod-728a120df27d5f27a477f1faae0059a5fcab150c.tar.gz
dabmod-728a120df27d5f27a477f1faae0059a5fcab150c.tar.bz2
dabmod-728a120df27d5f27a477f1faae0059a5fcab150c.zip
Avoid uninitialised variable in TimestampDecoder
-rw-r--r--src/TimestampDecoder.h1
1 files changed, 1 insertions, 0 deletions
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;