Added initialization for schedsim kcb.
authorSimon Gerber <simon.gerber@inf.ethz.ch>
Fri, 21 Nov 2014 17:57:52 +0000 (18:57 +0100)
committerSimon Gerber <simon.gerber@inf.ethz.ch>
Fri, 21 Nov 2014 17:57:52 +0000 (18:57 +0100)
tools/schedsim/simulator.c

index 32206e9..0f53b0b 100644 (file)
@@ -72,7 +72,7 @@ struct kcb {
     struct kcb *prev, *next;
     struct dcb *queue_head, *queue_tail;
     unsigned int u_hrt, u_srt, w_be, n_be;
-} curr;
+} curr = { 0, 0, 0, 0, 0, 0, 0, 0 };
 struct kcb *kcb_current = &curr;