From a50345f98f58c865a2e9b4eed9c59f47b1104f55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kirill=20M=C3=BCller?= Date: Wed, 5 Jun 2024 08:40:24 +0200 Subject: [PATCH] fix: Uninitialized --- patch/0008-fix-Fix-uninitialized-move-3.patch | 2 +- src/duckdb/src/common/types/vector.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/patch/0008-fix-Fix-uninitialized-move-3.patch b/patch/0008-fix-Fix-uninitialized-move-3.patch index 0781cd480..d299fba6c 100644 --- a/patch/0008-fix-Fix-uninitialized-move-3.patch +++ b/patch/0008-fix-Fix-uninitialized-move-3.patch @@ -16,7 +16,7 @@ index aa08072a..dd2552cc 100644 } -UnifiedVectorFormat::UnifiedVectorFormat(UnifiedVectorFormat &&other) noexcept { -+UnifiedVectorFormat::UnifiedVectorFormat(UnifiedVectorFormat &&other) noexcept : sel(nullptr) { ++UnifiedVectorFormat::UnifiedVectorFormat(UnifiedVectorFormat &&other) noexcept : sel(nullptr), data(nullptr) { bool refers_to_self = other.sel == &other.owned_sel; std::swap(sel, other.sel); std::swap(data, other.data); diff --git a/src/duckdb/src/common/types/vector.cpp b/src/duckdb/src/common/types/vector.cpp index dd2552ccc..7730a0c5a 100644 --- a/src/duckdb/src/common/types/vector.cpp +++ b/src/duckdb/src/common/types/vector.cpp @@ -30,7 +30,7 @@ namespace duckdb { UnifiedVectorFormat::UnifiedVectorFormat() : sel(nullptr), data(nullptr) { } -UnifiedVectorFormat::UnifiedVectorFormat(UnifiedVectorFormat &&other) noexcept : sel(nullptr) { +UnifiedVectorFormat::UnifiedVectorFormat(UnifiedVectorFormat &&other) noexcept : sel(nullptr), data(nullptr) { bool refers_to_self = other.sel == &other.owned_sel; std::swap(sel, other.sel); std::swap(data, other.data);