diff options
-rw-r--r-- | src/MuxElements.h | 3 | ||||
-rw-r--r-- | src/dabInputDabplusFile.cpp | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/MuxElements.h b/src/MuxElements.h index d714c76..4d770e9 100644 --- a/src/MuxElements.h +++ b/src/MuxElements.h @@ -184,7 +184,8 @@ class dabSubchannel { public: dabSubchannel(std::string& uid) : - uid(uid) + uid(uid), + id(0) { } diff --git a/src/dabInputDabplusFile.cpp b/src/dabInputDabplusFile.cpp index c435aba..396a376 100644 --- a/src/dabInputDabplusFile.cpp +++ b/src/dabInputDabplusFile.cpp @@ -84,6 +84,7 @@ int dabInputDabplusFileRead(void* args, void* buffer, int size) delete[] data->buffer; } data->buffer = new uint8_t[size * 5]; + memset(data->buffer, 0, size * 5); data->bufferSize = size * 5; data->bufferIndex = 0; } |