forked from len0rd/rockbox
hwstub: fix hwstub_shell
Change-Id: I008a55675054c86fd206cc5248f2bd9475e80b49
This commit is contained in:
parent
355b5406fa
commit
17affb8085
2 changed files with 5 additions and 2 deletions
|
@ -725,11 +725,14 @@ int main(int argc, char **argv)
|
|||
// load register descriptions
|
||||
std::vector< soc_t > socs;
|
||||
for(int i = optind; i < argc; i++)
|
||||
if(!soc_desc_parse_xml(argv[i], socs))
|
||||
{
|
||||
socs.push_back(soc_t());
|
||||
if(!soc_desc_parse_xml(argv[i], socs[socs.size() - 1]))
|
||||
{
|
||||
printf("Cannot load description '%s'\n", argv[i]);
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
|
||||
// create usb context
|
||||
libusb_context *ctx;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue