From 8fd2847a4875880432ec4ad36f4775562bc6562a Mon Sep 17 00:00:00 2001 From: Christian Prochaska Date: Thu, 13 Jan 2022 07:36:30 +0100 Subject: [PATCH] Audio_out::Stream: initialize members Issue #4373 --- repos/os/include/audio_out_session/audio_out_session.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/repos/os/include/audio_out_session/audio_out_session.h b/repos/os/include/audio_out_session/audio_out_session.h index 6e8b600844..a5f57437de 100644 --- a/repos/os/include/audio_out_session/audio_out_session.h +++ b/repos/os/include/audio_out_session/audio_out_session.h @@ -156,8 +156,8 @@ class Audio_out::Stream { private: - unsigned _pos; /* current playback position */ - unsigned _tail; /* tail pointer used for allocations */ + unsigned _pos { 0 }; /* current playback position */ + unsigned _tail { 0 }; /* tail pointer used for allocations */ Packet _buf[QUEUE_SIZE]; /* packet queue */ public: