(mouse_get_local): fix uninitialized scalar variable.

Found by Coverity.

Coverity id #32631.

Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andreas Mohr 2020-12-07 13:41:18 +00:00 committed by Andrew Borodin
parent e7a4f0932d
commit 9d8cd79dde
1 changed files with 2 additions and 6 deletions

View File

@ -798,13 +798,9 @@ mouse_get_local (const Gpm_Event * global, const Widget * w)
{
Gpm_Event local;
memset (&local, 0, sizeof (local));
local.buttons = global->buttons;
#ifdef HAVE_LIBGPM
local.clicks = 0;
local.margin = 0;
local.modifiers = 0;
local.vc = 0;
#endif
local.x = global->x - w->x;
local.y = global->y - w->y;
local.type = global->type;