summaryrefslogtreecommitdiffstats
path: root/src/server/Worker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/Worker.cpp')
-rw-r--r--src/server/Worker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/Worker.cpp b/src/server/Worker.cpp
index 1fd887d0..68926278 100644
--- a/src/server/Worker.cpp
+++ b/src/server/Worker.cpp
@@ -137,7 +137,7 @@ void
Worker::run()
{
while (_sem.wait() && !_exit_flag) {
- MessageHeader msg;
+ MessageHeader msg{};
if (_requests.read_space() > sizeof(msg)) {
if (_requests.read(sizeof(msg), &msg) != sizeof(msg)) {
_log.error("Error reading header from work request ring\n");