Skip to content

Commit

Permalink
fix: Fix uninitialized warning
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr committed Dec 8, 2024
1 parent 29cde15 commit d245c35
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
24 changes: 24 additions & 0 deletions patch/0006-Fix-uninitialized-warning.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
From 8b297dc5efaf19bde1520f417e323aba0a3fbf92 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Kirill=20M=C3=BCller?= <[email protected]>
Date: Sun, 8 Dec 2024 06:34:40 +0100
Subject: [PATCH] fix: Fix uninitialized warning

---
src/duckdb/src/main/connection.cpp | 1 +
1 file changed, 1 insertion(+)

diff --git a/src/duckdb/src/main/connection.cpp b/src/duckdb/src/main/connection.cpp
index 4dd7ad11..a08874fc 100644
--- a/src/duckdb/src/main/connection.cpp
+++ b/src/duckdb/src/main/connection.cpp
@@ -28,6 +28,7 @@ Connection::Connection(DatabaseInstance &database)
}

Connection::Connection(DuckDB &database) : Connection(*database.instance) {
+ warning_cb = nullptr;
}

Connection::Connection(Connection &&other) noexcept {
--
2.43.0

1 change: 1 addition & 0 deletions src/duckdb/src/main/connection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ Connection::Connection(DatabaseInstance &database)
}

Connection::Connection(DuckDB &database) : Connection(*database.instance) {
warning_cb = nullptr;
}

Connection::Connection(Connection &&other) noexcept {
Expand Down

0 comments on commit d245c35

Please sign in to comment.