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:
Daniel Eklöf 2024-08-03 09:04:24 +02:00
parent b27841e1b5
commit a3a35f2c8c
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -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;
}