Skip to content

Commit 77aaeeb

Browse files
committed
fix null guards
1 parent 18cf8c7 commit 77aaeeb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libsql-sys/src/wal/ffi.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -446,8 +446,8 @@ pub unsafe extern "C" fn checkpoint<T: Wal>(
446446
_ => panic!("invalid checkpoint mode"),
447447
};
448448

449-
let in_wal = (!frames_in_wal_out.is_null()).then_some(&mut *frames_in_wal_out);
450-
let backfilled = (!checkpointed_frames_out.is_null()).then_some(&mut *checkpointed_frames_out);
449+
let in_wal = (!frames_in_wal_out.is_null()).then(|| &mut *frames_in_wal_out);
450+
let backfilled = (!checkpointed_frames_out.is_null()).then(|| &mut *checkpointed_frames_out);
451451
let mut db = Sqlite3Db { inner: db };
452452
match this.checkpoint(
453453
&mut db,

0 commit comments

Comments
 (0)