diff -r 489ea0becd74 -r 14f634f5b613 tool/CommandEoe.cpp --- 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);