mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-25 10:40:06 +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>
This commit is contained in:
parent
6274dca9d9
commit
da4eebe58e
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