diff -r 489ea0becd74 -r 14f634f5b613 tool/CommandGraph.cpp --- a/tool/CommandGraph.cpp Thu Mar 11 14:29:43 2010 +0100 +++ b/tool/CommandGraph.cpp Thu Mar 11 15:03:52 2010 +0100 @@ -67,6 +67,7 @@ void CommandGraph::execute(const StringVector &args) { + MasterIndexList masterIndices; ec_ioctl_master_t master; unsigned int i; typedef vector SlaveVector; @@ -90,12 +91,13 @@ throwInvalidUsageException(err); } - if (getMasterIndices().size() != 1) { + masterIndices = getMasterIndices(); + if (masterIndices.size() != 1) { stringstream err; err << getName() << " requires to select a single master!"; throwInvalidUsageException(err); } - MasterDevice m(getMasterIndices().front()); + MasterDevice m(masterIndices.front()); m.open(MasterDevice::Read); m.getMaster(&master);