Fixed bug in slave scanning, causing a segmentation fault.
authorFlorian Pose <fp@igh-essen.com>
Thu, 12 Jun 2008 09:49:35 +0000
changeset 1002 0e1aaeb3540d
parent 1001 a8eab75aa8e3
child 1003 f7cf194d6979
Fixed bug in slave scanning, causing a segmentation fault.
master/fsm_master.c
--- a/master/fsm_master.c	Thu Jun 12 09:44:18 2008 +0000
+++ b/master/fsm_master.c	Thu Jun 12 09:49:35 2008 +0000
@@ -698,7 +698,7 @@
 
     // another slave to fetch?
     fsm->slave++;
-    if (slave < master->slaves + master->slave_count) {
+    if (fsm->slave < master->slaves + master->slave_count) {
         ec_fsm_slave_scan_start(&fsm->fsm_slave_scan, fsm->slave);
         ec_fsm_slave_scan_exec(&fsm->fsm_slave_scan); // execute immediately
         return;