mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-12-23 08:21:09 +00:00
make it more safe + clippy
This commit is contained in:
parent
eeef8b85fa
commit
5caf9a2640
1 changed files with 1 additions and 1 deletions
|
|
@ -575,7 +575,7 @@ impl Limbo {
|
|||
|
||||
// if the address is not the same, meaning the string has been reallocated
|
||||
// so we just drop the part we took earlier
|
||||
if ptr.addr() != old_address {
|
||||
if ptr.addr() != old_address || !app.input_buff.is_empty() {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue