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:
Sébastien Helleu 2017-09-25 20:12:31 +02:00
parent 9a6b107648
commit 01cc63aa45

View File

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