Skip to content

Commit

Permalink
fix: Uninitialized
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr committed Jun 5, 2024
1 parent 9bb9c44 commit a50345f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion patch/0008-fix-Fix-uninitialized-move-3.patch
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/duckdb/src/common/types/vector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a50345f

Please sign in to comment.