* hw-events.c (hw_event_queue_schedule): Initialize `dummy'.

This commit is contained in:
Andrew Cagney 2002-06-17 23:53:45 +00:00
parent 57af9c8bc0
commit 2796179517
2 changed files with 3 additions and 0 deletions

View File

@ -1,5 +1,7 @@
2002-06-17 Andrew Cagney <cagney@redhat.com>
* hw-events.c (hw_event_queue_schedule): Initialize `dummy'.
* sim-memopt.c: Include <unistd.h>.
(do_memopt_add): Fix printf format.
* sim-events.c (sim_events_schedule): Initialize ``dummy''.

View File

@ -88,6 +88,7 @@ hw_event_queue_schedule (struct hw *me,
{
struct hw_event *event;
va_list dummy;
memset (&dummy, 0, sizeof dummy);
event = hw_event_queue_schedule_vtracef (me, delta_time, callback, data,
NULL, dummy);
return event;