From 53c4dcf374c66f1e9190f5a62a52d02fe11a69e6 Mon Sep 17 00:00:00 2001 From: Dominick Allen Date: Wed, 16 Oct 2024 22:25:08 -0500 Subject: First crack at allocators. --- source/fud_sqlite.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source/fud_sqlite.cpp') diff --git a/source/fud_sqlite.cpp b/source/fud_sqlite.cpp index 449be8b..e13feee 100644 --- a/source/fud_sqlite.cpp +++ b/source/fud_sqlite.cpp @@ -22,7 +22,10 @@ namespace fud { SqliteDbResult SqliteDb::make(const String& name, SqliteOpenMode mode, int extraFlags) { SqliteDb sqlDb{}; - sqlDb.m_name = name; + auto copyResult = sqlDb.m_name.copy(name); + if (copyResult != FudStatus::Success) { + return SqliteDbResult::error(copyResult); + } sqlDb.m_mode = mode; sqlDb.m_extraFlags = extraFlags; auto status = sqlDb.initialize(); -- cgit v1.2.3