From 294d29580e10a11e185c4ae82cae1f310c622cca Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Thu, 20 May 2021 15:56:15 -0400 Subject: [PATCH] Fix initializers to compile on centos7 --- src/zm_monitor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/zm_monitor.cpp b/src/zm_monitor.cpp index 8c8ea5943..2bb9508b0 100644 --- a/src/zm_monitor.cpp +++ b/src/zm_monitor.cpp @@ -380,7 +380,7 @@ Monitor::Monitor() event_close_mode(CLOSE_IDLE), #if ZM_MEM_MAPPED map_fd(-1), - mem_file(""), + mem_file({}), #else // ZM_MEM_MAPPED shm_id(-1), #endif // ZM_MEM_MAPPED @@ -388,7 +388,7 @@ Monitor::Monitor() mem_ptr(nullptr), shared_data(nullptr), trigger_data(nullptr), - video_store_data(nullptr), + video_store_data({}), shared_timestamps(nullptr), shared_images(nullptr), video_stream_id(-1),