mirror of
https://github.com/Tha14/toxic.git
synced 2025-07-03 12:16:44 +02:00
Fix a couple minor issues
Print a warning if remove() fails, and check if the win pointer is null before using it (this is unnecessary but it's correct and shuts coverity up)
This commit is contained in:
@ -242,7 +242,10 @@ static void print_wrap(WINDOW *win, struct line_info *line, int max_x)
|
||||
print_n_chars(win, msg, space_idx);
|
||||
msg += space_idx + 1;
|
||||
length -= (space_idx + 1);
|
||||
waddch(win, '\n');
|
||||
|
||||
if (win) {
|
||||
waddch(win, '\n');
|
||||
}
|
||||
} else {
|
||||
print_n_chars(win, msg, x_limit);
|
||||
msg += x_limit;
|
||||
|
Reference in New Issue
Block a user