diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-10-24 13:14:31 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-10-24 13:14:31 +0800 |
| commit | 6810257923b2c7d4cd39c026c0a0e8c280d77d97 (patch) | |
| tree | 4e5787815992a54b5069ed0082fd6ad48c0b7b03 /src/ui.rs | |
| parent | 653e79c3e0515cc33b9915973c8e43021f8f2a87 (diff) | |
fix: verify out of bound slice poshash_chain
Diffstat (limited to 'src/ui.rs')
| -rw-r--r-- | src/ui.rs | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -25,6 +25,9 @@ impl Ui { let cmd: Vec<&str> = cmd .split_whitespace() .collect(); + if cmd.is_empty() { + return None; + } if cmd[0] == "trans" { let trans = Transaction::new( self.me, |
