diff options
author | Jon TURNEY <jon.turney@dronecode.org.uk> | 2010-10-13 17:34:31 +0100 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2010-10-13 09:46:26 -0700 |
commit | da4eebe58ec81e2297cc1773af1fb622fb392bbd (patch) | |
tree | 509624c7a52bb500e9578a538fb3718ad128a9b9 /mi/mieq.c | |
parent | 6274dca9d984ad3c553b4901edc3151e770e6c40 (diff) |
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>
Diffstat (limited to 'mi/mieq.c')
-rw-r--r-- | mi/mieq.c | 4 |
1 files changed, 4 insertions, 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"); |