summaryrefslogtreecommitdiff
path: root/sim/common
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2002-06-17 23:53:45 +0000
committerAndrew Cagney <cagney@redhat.com>2002-06-17 23:53:45 +0000
commitdde334b1b574cfe4bf967629500276ba01717488 (patch)
tree28e7d984b2e95c51e5cf60f9d86c1e46b7f7e163 /sim/common
parentd02d025f75bfbae7573a1e876cc02801c258ca8f (diff)
downloadgdb-dde334b1b574cfe4bf967629500276ba01717488.tar.gz
* hw-events.c (hw_event_queue_schedule): Initialize `dummy'.
Diffstat (limited to 'sim/common')
-rw-r--r--sim/common/ChangeLog2
-rw-r--r--sim/common/hw-events.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog
index b7e13e3c55f..84db79348ed 100644
--- a/sim/common/ChangeLog
+++ b/sim/common/ChangeLog
@@ -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''.
diff --git a/sim/common/hw-events.c b/sim/common/hw-events.c
index 243a7aae712..78cceb66d91 100644
--- a/sim/common/hw-events.c
+++ b/sim/common/hw-events.c
@@ -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;