tool/CommandEoe.cpp
changeset 1869 14f634f5b613
parent 1827 489be2180f71
child 1968 4f682084c643
--- a/tool/CommandEoe.cpp	Thu Mar 11 14:29:43 2010 +0100
+++ b/tool/CommandEoe.cpp	Thu Mar 11 15:03:52 2010 +0100
@@ -63,6 +63,7 @@
 
 void CommandEoe::execute(const StringVector &args)
 {
+	MasterIndexList masterIndices;
     ec_ioctl_master_t master;
     unsigned int i;
     ec_ioctl_eoe_handler_t eoe;
@@ -75,11 +76,12 @@
         throwInvalidUsageException(err);
     }
 
-    doIndent = getMasterIndices().size();
+	masterIndices = getMasterIndices();
+    doIndent = masterIndices.size();
     indent = doIndent ? "  " : "";
     MasterIndexList::const_iterator mi;
-    for (mi = getMasterIndices().begin();
-            mi != getMasterIndices().end(); mi++) {
+    for (mi = masterIndices.begin();
+            mi != masterIndices.end(); mi++) {
         MasterDevice m(*mi);
         m.open(MasterDevice::Read);
         m.getMaster(&master);