We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 582a4ab commit 6a6af6aCopy full SHA for 6a6af6a
stdlib/src/sqlite.rs
@@ -1026,7 +1026,7 @@ mod _sqlite {
1026
name_cstring = name.to_cstring(vm)?;
1027
name_cstring.as_ptr()
1028
} else {
1029
- b"main\0".as_ptr().cast()
+ c"main".as_ptr().cast()
1030
};
1031
1032
let sleep_ms = (sleep * 1000.0) as c_int;
@@ -1035,7 +1035,7 @@ mod _sqlite {
1035
let target_db = target.db_lock(vm)?;
1036
1037
let handle = unsafe {
1038
- sqlite3_backup_init(target_db.db, b"main\0".as_ptr().cast(), db.db, name_ptr)
+ sqlite3_backup_init(target_db.db, c"main".as_ptr().cast(), db.db, name_ptr)
1039
1040
1041
if handle.is_null() {
0 commit comments