mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-02-17 12:30:38 +01:00
event_size is currently never assigned to in mieqProcessInputEvents().
event_size is never assigned to in mieqProcessInputEvents(), so realloc()
is always called. This is benign, but I'm guessing not intended.
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Reviewed-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
(cherry picked from commit da4eebe58e)
This commit is contained in:
parent
efeb2ebd7e
commit
712853fbcb
1 changed files with 4 additions and 0 deletions
|
|
@ -439,7 +439,11 @@ mieqProcessInputEvents(void)
|
|||
|
||||
evlen = e->events->evlen;
|
||||
if(evlen > event_size)
|
||||
{
|
||||
event = realloc(event, evlen);
|
||||
event_size = evlen;
|
||||
}
|
||||
|
||||
|
||||
if (!event)
|
||||
FatalError("[mi] No memory left for event processing.\n");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue