diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2017-09-25 20:12:31 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2017-09-25 20:12:31 +0200 |
commit | 01cc63aa4540d5fa20f948540e40b0150fcaa480 (patch) | |
tree | 2215d17b4ada8cd5ccde3117b29c814dc2ce926a /src/gui | |
parent | 9a6b107648d4dda8a744b9f413761b5794f0c61c (diff) | |
download | weechat-01cc63aa4540d5fa20f948540e40b0150fcaa480.zip |
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.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/curses/gui-curses-window.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/curses/gui-curses-window.c b/src/gui/curses/gui-curses-window.c index a95b2724e..98b4a5aa1 100644 --- a/src/gui/curses/gui-curses-window.c +++ b/src/gui/curses/gui-curses-window.c @@ -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); |