diff options
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(); |