diff -r 489ea0becd74 -r 14f634f5b613 tool/CommandSiiWrite.cpp --- a/tool/CommandSiiWrite.cpp Thu Mar 11 14:29:43 2010 +0100 +++ b/tool/CommandSiiWrite.cpp Thu Mar 11 15:03:52 2010 +0100 @@ -78,6 +78,7 @@ void CommandSiiWrite::execute(const StringVector &args) { + MasterIndexList masterIndices; stringstream err; ec_ioctl_slave_sii_t data; ifstream file; @@ -88,11 +89,12 @@ throwInvalidUsageException(err); } - if (getMasterIndices().size() != 1) { + masterIndices = getMasterIndices(); + if (masterIndices.size() != 1) { err << getName() << " requires to select a single master!"; throwInvalidUsageException(err); } - MasterDevice m(getMasterIndices().front()); + MasterDevice m(masterIndices.front()); if (args[0] == "-") { loadSiiData(&data, cin);