core: initialize variables attrs and pair before calling wattr_get
This fixes a compiler warning, in some cases wattr_get may not initialize the variables.
This commit is contained in:
parent
9a6b107648
commit
01cc63aa45
@ -570,6 +570,8 @@ gui_window_emphasize (WINDOW *window, int x, int y, int count)
|
||||
else
|
||||
{
|
||||
/* exclusive or (XOR) with attributes */
|
||||
attrs = 0;
|
||||
pair = 0;
|
||||
ptr_attrs = &attrs;
|
||||
ptr_pair = &pair;
|
||||
wattr_get (window, ptr_attrs, ptr_pair, NULL);
|
||||
|
Loading…
x
Reference in New Issue
Block a user