mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-31 13:54:27 +01:00
make it more safe + clippy
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user