diff options
author | Dominick Allen <djallen@librehumanitas.org> | 2024-10-16 22:25:08 -0500 |
---|---|---|
committer | Dominick Allen <djallen@librehumanitas.org> | 2024-10-16 22:25:08 -0500 |
commit | 53c4dcf374c66f1e9190f5a62a52d02fe11a69e6 (patch) | |
tree | ee40277c36fdba58fb06aca87b8ffa67ab5f8558 /source/fud_sqlite.cpp | |
parent | f3ac764684c64fbdd2094853a80b23e570cd5d9c (diff) |
First crack at allocators.
Diffstat (limited to 'source/fud_sqlite.cpp')
-rw-r--r-- | source/fud_sqlite.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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(); |