mirror of https://github.com/MidnightCommander/mc
(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:
parent
e7a4f0932d
commit
9d8cd79dde
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue