summaryrefslogtreecommitdiff
path: root/mi/mieq.c
diff options
context:
space:
mode:
authorJon TURNEY <jon.turney@dronecode.org.uk>2010-10-13 17:34:31 +0100
committerKeith Packard <keithp@keithp.com>2010-10-13 09:46:26 -0700
commitda4eebe58ec81e2297cc1773af1fb622fb392bbd (patch)
tree509624c7a52bb500e9578a538fb3718ad128a9b9 /mi/mieq.c
parent6274dca9d984ad3c553b4901edc3151e770e6c40 (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.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mi/mieq.c b/mi/mieq.c
index fa60b405b..d1441e285 100644
--- a/mi/mieq.c
+++ b/mi/mieq.c
@@ -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");