1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-06-30 22:16:44 +02:00

cleanup: fix some uninitialized memory warnings and clarify some logic

This commit is contained in:
jfreegman
2021-12-13 12:33:52 -05:00
parent bf1e1b73fc
commit 3f18c6f8de
5 changed files with 27 additions and 23 deletions

View File

@ -685,10 +685,10 @@ void draw_window_bar(ToxWindow *self)
int cur_x;
int cur_y;
UNUSED_VAR(cur_y);
getyx(win, cur_y, cur_x);
UNUSED_VAR(cur_y);
wattron(win, COLOR_PAIR(BAR_TEXT));
mvwhline(win, 0, cur_x, ' ', COLS - cur_x);
wattroff(win, COLOR_PAIR(BAR_TEXT));