From c44ce78591a54beef8c6daddb32b2e0f602dd7d7 Mon Sep 17 00:00:00 2001 From: Arne Welzel Date: Tue, 19 Aug 2025 20:00:21 +0200 Subject: [PATCH] logging/Manager: Also pass non-null vector and set Primarily to align with strings and also to keep the plugin API the same. --- src/logging/Manager.cc | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/logging/Manager.cc b/src/logging/Manager.cc index 84e69b6d7b..da1ff9d192 100644 --- a/src/logging/Manager.cc +++ b/src/logging/Manager.cc @@ -1566,9 +1566,6 @@ threading::Value Manager::ValToLogVal(WriterInfo* info, const Stream* stream, st info->total_truncated_containers->Inc(); } - if ( allowed_elements == 0 ) - return lval; - lval.val.set_val.vals = new threading::Value*[allowed_elements]; for ( size_t i = 0; i < allowed_elements && total_record_size < max_log_record_size; i++ ) { @@ -1597,9 +1594,6 @@ threading::Value Manager::ValToLogVal(WriterInfo* info, const Stream* stream, st info->total_truncated_containers->Inc(); } - if ( allowed_elements == 0 ) - return lval; - lval.val.vector_val.vals = new threading::Value*[allowed_elements]; auto& vv = vec->RawVec();