mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
term: reload_fonts(): don't ignore return value of thrd_join()
This should fix the
‘ret’ may be used uninitialized
warning
Closes #1789
This commit is contained in:
parent
b27841e1b5
commit
a3a35f2c8c
1 changed files with 4 additions and 2 deletions
|
|
@ -1048,8 +1048,10 @@ reload_fonts(struct terminal *term, bool resize_grid)
|
|||
for (size_t i = 0; i < 4; i++) {
|
||||
if (tids[i] != 0) {
|
||||
int ret;
|
||||
thrd_join(tids[i], &ret);
|
||||
success = success && ret;
|
||||
if (thrd_join(tids[i], &ret) != 0)
|
||||
success = false;
|
||||
else
|
||||
success = success && ret;
|
||||
} else
|
||||
success = false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue