mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-15 05:33:58 -04:00
scan-build: fix a couple of minor warnings from a scan-build run
This commit is contained in:
parent
9abc5ca971
commit
15b12f45c6
6 changed files with 7 additions and 5 deletions
|
|
@ -108,6 +108,7 @@ extract_selection(const struct terminal *term)
|
|||
start_col = 0;
|
||||
}
|
||||
|
||||
assert(idx > 0);
|
||||
assert(idx < buf_size);
|
||||
if (buf[idx - 1] == '\n')
|
||||
buf[idx - 1] = '\0';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue