Minor: Ordered master member initialisations. stable-1.5
authorFlorian Pose <fp@igh-essen.com>
Fri, 09 Dec 2011 10:46:25 +0100
branchstable-1.5
changeset 2168 670cd8aa273d
parent 2167 a19490c34184
child 2169 1a128e86d4f6
Minor: Ordered master member initialisations.
master/master.c
--- a/master/master.c	Fri Dec 09 10:46:04 2011 +0100
+++ b/master/master.c	Fri Dec 09 10:46:25 2011 +0100
@@ -147,6 +147,7 @@
     master->slave_count = 0;
     
     INIT_LIST_HEAD(&master->configs);
+    INIT_LIST_HEAD(&master->domains);
 
     master->app_time = 0ULL;
     master->app_start_time = 0ULL;
@@ -172,8 +173,6 @@
     // send interval in IDLE phase
     ec_master_set_send_interval(master, 1000000 / HZ);
 
-    INIT_LIST_HEAD(&master->domains);
-
     master->debug_level = debug_level;
     master->stats.timeouts = 0;
     master->stats.corrupted = 0;